.close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 24px;
    padding: 4px 15px;
    color: #bbb;
    cursor: pointer;
}

    .close-button:hover {
        background: #222;
    }


/* Main panel wrapper so title never moves */
.login-panel {
    display: flex;
    flex-direction: column;
    /* FIXED SPACE: ensures no "jumping" */
    min-height: 520px; /* adjust value if needed */
    justify-content: flex-start;
    /* Push everything DOWN a bit */
    padding-top: 120px;
}

/* Fix the title at a stable position */
.login-title {
    margin-top: 0;
    margin-bottom: 40px;
    /* Reserve space so it does not move */
    min-height: 100px; /* You can tweak this number */
    text-align: center; /* centers multi-line text */
    /*display: flex;*/
    align-items: center;
    justify-content: center;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin: 20px 0;
    width: 100%;
    max-width: 320px; /* align width with buttons */
    margin-left: auto;
    margin-right: auto;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #333;
        margin: 0 12px;
    }

    .divider span {
        display: inline-block;
        padding: 0 4px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #aaa;
    }

.login-terms {
    margin-top: 10px;
    display: block;
    text-align: center;
    opacity: 0.6;
    font-size: 0.8rem;
}





/* Wrapper to keep buttons centered and stacked nicely */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 10px;
}

/* Base style for all OAuth buttons (Google, MS, Apple, Email) */
.oauth-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #E6E6E6;
    color: #222;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    text-decoration: none; /* for <a> */

    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease, border-color 0.16s ease;
}

    .oauth-button:hover {
        background: #f2f2f2;
        border-color: #ccc;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    .oauth-button:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

    .oauth-button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

/* Icon container – NO circle, no background */
.oauth-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border-radius: 0;
    padding: 0;
}

/* SVG size for all providers */
.oauth-svg,
.google-g {
    width: 20px;
    height: 20px;
}

/* Label text inside buttons */
.oauth-label {
    white-space: nowrap;
    color: #444;
}

/* Optional: keep buttons full width on very small screens */
@media (max-width: 480px) {
    .oauth-button {
        max-width: 100%;
    }
}

.legal-link {
    color: #999;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

    .legal-link:hover {
        color: #ccc;
    }





/* Container for the email login view */
.email-login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

/* Inner form aligned to same width as buttons */
.email-form-inner {
    width: 100%;
    max-width: 320px; /* same as .oauth-button */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each field wrapper */
.email-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    /* Label styling */
    .email-field label {
        font-size: 0.9rem;
        color: #ddd;
        letter-spacing: 0.7px;
    }

.email-input-field {
    width: 100%;
    max-width: 320px;
    /*padding: 12px 18px;*/
    padding: 12px 48px 12px 18px; /* extra right padding for the toggle */
    border-radius: 12px;
    background: #000; /* <-- black background */
    border: 1px solid #eee; /* subtle border */
    color: #fff; /* light text */
    font-size: 1.1rem;
    font-weight: 500;
    box-sizing: border-box;
    transition: border-color .15s ease, background .15s ease;
}

    .email-input-field::placeholder {
        color: #888;
    }

    /* Focus effect */
    .email-input-field:focus {
        outline: none;
        border-color: #999;
        background: #111; /* subtle active effect */
    }


.password-row {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px auto;
}

/* Wrap input + toggle button */
.password-wrapper {
    position: relative;
}

/* Toggle button inside the input, on the right */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #777;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

    .password-toggle:hover {
        color: #444;
    }

/* Remember me row */
.email-remember-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
}

/* Submit button reuses .oauth-button; this just tweaks spacing if needed */
.email-submit-button {
    justify-content: center; /* center text inside button */
}

.oauth-button.email-submit-button:not(:disabled) {
    background: #eee; /* or any color */
    border-color: #bbb;
    color: #222;
}

/* Links under email form */
.email-links {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

    .email-links span {
        color: #bbb;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .email-links span:hover {
        color: #fff;
    }

/* Back link under the form */
.back-link {
    margin-top: 16px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #bbb;
    cursor: pointer;
}

    .back-link span:hover {
        color: #fff;
    }



/* ----- Modern Black Checkbox ----- */
/* Row alignment */
.email-remember-row {
    width: 100%;
    max-width: 320px;
    margin: 10px auto 20px auto;
}

/* Label holds checkbox + text */
.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.95rem;
}

/* Remove browser default checkbox */
.remember-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #555;
    background: #000; /* black background */
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

    /* Focus outline */
    .remember-checkbox:focus {
        outline: 2px solid #666;
    }

    /* Checked state – white checkmark */
    .remember-checkbox:checked {
        background: #111;
        border-color: #999;
    }

        /* Add a checkmark using a pseudo-element */
        .remember-checkbox:checked::after {
            content: "";
            position: absolute;
            top: 2px;
            left: 6px;
            width: 5px;
            height: 10px;
            border: solid #fff; /* white checkmark */
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }


.recovery-text {
    margin: 0 auto; /* centers the entire block */
    text-align: center;
    font-size: 1.1rem; /* or 1rem if you want bigger */
    line-height: 1.4;
    color: #ddd; /* soft grey like other helper text */
    max-width: 320px;
}