/* Spotify Phishing - Official Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --spotify-green: #1DB954;
    --spotify-green-dark: #1AA34A;
    --spotify-black: #191414;
    --spotify-white: #FFFFFF;
    --spotify-gray: #535353;
    --spotify-light-gray: #B3B3B3;
    --spotify-error: #E91429;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #000000 0%, var(--spotify-black) 100%);
    color: var(--spotify-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-box {
    background: var(--spotify-black);
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.spotify-logo {
    width: 132px;
    height: auto;
    color: var(--spotify-white);
}

h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: var(--spotify-light-gray);
    font-size: 14px;
    margin-bottom: 32px;
}

/* Language Selector */
.language-selector {
    margin-bottom: 24px;
}

.lang-select {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--spotify-gray);
    border-radius: 4px;
    color: var(--spotify-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-select:hover {
    border-color: var(--spotify-white);
}

.lang-select:focus {
    outline: none;
    border-color: var(--spotify-white);
}

.lang-select option {
    background: var(--spotify-black);
    color: var(--spotify-white);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--spotify-white);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--spotify-black);
    border: 1px solid var(--spotify-gray);
    border-radius: 4px;
    color: var(--spotify-white);
    font-size: 16px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--spotify-white);
}

.form-group input::placeholder {
    color: var(--spotify-gray);
}

/* Checkbox */
.checkbox-group {
    margin: 24px 0;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--spotify-white);
}

.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--spotify-green);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 500px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: inherit;
}

.btn-primary {
    background: var(--spotify-green);
    color: var(--spotify-black);
}

.btn-primary:hover {
    background: var(--spotify-green-dark);
    transform: scale(1.04);
}

.btn-primary:active {
    transform: scale(0.96);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(233, 20, 41, 0.1);
    border: 1px solid var(--spotify-error);
    color: var(--spotify-error);
}

/* Links */
.forgot-password {
    text-align: center;
    margin: 24px 0;
}

.forgot-password a {
    color: var(--spotify-white);
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: var(--spotify-green);
}

/* Divider */
.divider {
    height: 1px;
    background: var(--spotify-gray);
    margin: 32px 0;
}

/* Signup Link */
.signup-link {
    text-align: center;
}

.signup-link p {
    color: var(--spotify-light-gray);
    font-size: 16px;
    margin-bottom: 16px;
}

.link-signup {
    display: inline-block;
    color: var(--spotify-white);
    text-decoration: underline;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s;
}

.link-signup:hover {
    color: var(--spotify-green);
}

/* Footer */
footer {
    margin-top: 48px;
    text-align: center;
    color: var(--spotify-light-gray);
    font-size: 11px;
    max-width: 450px;
}

footer a {
    color: var(--spotify-light-gray);
    text-decoration: underline;
}

footer a:hover {
    color: var(--spotify-white);
}

/* Success Page */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--spotify-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message {
    text-align: center;
}

.success-message h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--spotify-light-gray);
    font-size: 16px;
    margin-bottom: 32px;
}

/* Info Box */
.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.info-box h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--spotify-green);
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 6px 0;
    color: var(--spotify-light-gray);
    font-size: 14px;
}

.info-box li strong {
    color: var(--spotify-white);
}

/* Responsive */
@media (max-width: 640px) {
    .login-box {
        padding: 32px 24px;
    }

    h1 {
        font-size: 28px;
    }

    .btn {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
}

/* RTL Support for Arabic */
html[lang="ar"] {
    direction: rtl;
}

html[lang="ar"] .checkbox input[type="checkbox"] {
    margin-right: 0;
    margin-left: 8px;
}

/* Loading State */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
