/* ===== SHORTLISTED AUTH STYLES ===== */
/* Prefixed with .sa- to avoid conflicts */

/* ===== AUTH MODAL OVERLAY ===== */
.sa-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.sa-overlay.sa-active {
    display: flex;
}

/* ===== AUTH MODAL ===== */
.sa-modal {
    background: #111111;
    border: 1px solid rgba(200, 255, 0, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: saSlideUp 0.3s ease;
}

@keyframes saSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sa-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.sa-close:hover {
    color: #fff;
}

.sa-modal h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.sa-modal .sa-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ===== FORM ELEMENTS ===== */
.sa-form-group {
    margin-bottom: 1rem;
}

.sa-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.4rem;
}

.sa-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    outline: none;
    color: #fff;
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s, background 0.2s;
}

.sa-input:focus {
    border-color: #C8FF00;
    background: rgba(255,255,255,0.08);
}

.sa-input::placeholder {
    color: rgba(255,255,255,0.3);
}

/* ===== BUTTONS ===== */
.sa-btn-primary {
    width: 100%;
    padding: 0.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #C8FF00;
    color: #000;
    margin-top: 0.5rem;
}

.sa-btn-primary:hover {
    background: #B0E000;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(200, 255, 0, 0.25);
}

.sa-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sa-btn-google {
    width: 100%;
    padding: 0.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.sa-btn-google:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}

.sa-btn-google svg {
    width: 18px;
    height: 18px;
}

/* ===== DIVIDER ===== */
.sa-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sa-divider::before,
.sa-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* ===== LINKS ===== */
.sa-link {
    background: none;
    border: none;
    color: #C8FF00;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.sa-link:hover {
    opacity: 0.8;
}

.sa-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.sa-footer .sa-link {
    margin-left: 0.25rem;
}

.sa-forgot {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

/* ===== CHECKBOX ===== */
.sa-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1rem 0;
}

.sa-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    margin-top: 2px;
    transition: all 0.2s;
    background: transparent;
}

.sa-checkbox:checked {
    background: #C8FF00;
    border-color: #C8FF00;
}

.sa-checkbox-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    cursor: pointer;
}

/* ===== MESSAGES ===== */
.sa-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF6B6B;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

.sa-error.sa-show {
    display: block;
}

.sa-success-view {
    text-align: center;
    padding: 1rem 0;
}

.sa-success-view .sa-icon {
    width: 56px;
    height: 56px;
    background: rgba(200, 255, 0, 0.1);
    border: 2px solid rgba(200, 255, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.sa-success-view h3 {
    margin-bottom: 0.5rem;
}

.sa-success-view p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ===== LOADING SPINNER ===== */
.sa-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: saSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.4rem;
}

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

/* ===== NAV AUTH ELEMENTS ===== */
.sa-nav-signin {
    background: #C8FF00;
    color: #000 !important;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(200, 255, 0, 0.25), 0 0 40px rgba(200, 255, 0, 0.1);
    cursor: pointer;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.sa-nav-signin:hover {
    background: #B0E000;
    color: #000 !important;
    transform: translateY(-1px);
}

/* ===== AVATAR & DROPDOWN ===== */
.sa-avatar-wrap {
    position: relative;
}

.sa-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #C8FF00;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.sa-avatar:hover {
    border-color: rgba(200, 255, 0, 0.5);
    box-shadow: 0 0 12px rgba(200, 255, 0, 0.3);
}

.sa-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #111111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 10002;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    animation: saFadeIn 0.15s ease;
}

.sa-dropdown.sa-open {
    display: block;
}

@keyframes saFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.sa-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sa-dropdown-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.sa-dropdown-email {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-credit-pill {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(200, 255, 0, 0.12);
    color: #C8FF00;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.sa-tier-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    background: #C8FF00;
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

.sa-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.sa-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: #C8FF00;
}

.sa-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.25rem 0;
}

.sa-dropdown-item.sa-signout {
    color: rgba(255, 59, 48, 0.8);
}

.sa-dropdown-item.sa-signout:hover {
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.05);
}

/* ===== SIGN-UP BANNER (Dashboard) ===== */
.sa-signup-banner {
    background: rgba(200, 255, 0, 0.04);
    border: 1px solid rgba(200, 255, 0, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sa-signup-banner-text {
    flex: 1;
}

.sa-signup-banner-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.sa-signup-banner-text p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.sa-signup-banner-btn {
    background: #C8FF00;
    color: #000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sa-signup-banner-btn:hover {
    background: #B0E000;
    transform: translateY(-1px);
}

.sa-signup-banner-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.sa-signup-banner-close:hover {
    color: #fff;
}

/* ===== MIGRATION MODAL ===== */
.sa-migrate-content {
    text-align: center;
}

.sa-migrate-content .sa-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.sa-migrate-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sa-migrate-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.sa-migrate-stat {
    text-align: center;
}

.sa-migrate-stat .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #C8FF00;
}

.sa-migrate-stat .label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.15rem;
}

.sa-migrate-buttons {
    display: flex;
    gap: 0.75rem;
}

.sa-migrate-buttons button {
    flex: 1;
    padding: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.sa-migrate-buttons .sa-btn-primary {
    margin-top: 0;
}

.sa-btn-skip {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

.sa-btn-skip:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* ===== PASSWORD VISIBILITY TOGGLE ===== */
.sa-password-wrap {
    position: relative;
}

.sa-password-wrap .sa-input {
    padding-right: 3rem;
}

.sa-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.sa-password-toggle:hover {
    color: rgba(255,255,255,0.6);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .sa-modal {
        padding: 2rem 1.5rem;
        max-width: 100%;
        border-radius: 16px;
    }

    .sa-signup-banner {
        flex-direction: column;
        text-align: center;
    }

    .sa-dropdown {
        right: -1rem;
        min-width: 200px;
    }

    .sa-migrate-stats {
        gap: 1rem;
    }
}
