/* ============================================================
   AUTH PAGES — SIGNUP, LOGIN, FORGOT PASSWORD
   ============================================================ */

:root {
    --auth-primary: #4f46e5;
    --auth-primary-hover: #4338ca;
    --auth-bg: #f8fafc;
    --auth-card: #ffffff;
    --auth-text: #1e293b;
    --auth-text-light: #64748b;
    --auth-border: #e2e8f0;
    --auth-error: #ef4444;
    --auth-success: #22c55e;
    --auth-radius: 16px;
}

/* ========== AUTH WRAPPER ========== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
    background: var(--auth-bg);
}

/* ========== AUTH CARD ========== */
.auth-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    animation: authFadeIn 0.4s ease;
}

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

.auth-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--auth-primary), #7c3aed);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.4rem;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--auth-text);
    margin: 0 0 4px;
}

.auth-subtitle {
    text-align: center;
    color: var(--auth-text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ========== GOOGLE BUTTON ========== */
.auth-btn-google {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--auth-text);
    transition: all 0.2s;
    font-family: inherit;
}

.auth-btn-google:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* ========== DIVIDER ========== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--auth-text-light);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}

.auth-divider span {
    padding: 0 12px;
    white-space: nowrap;
}

/* ========== FORM GROUPS ========== */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--auth-text);
}

.auth-form-group label i {
    color: var(--auth-text-light);
    margin-right: 4px;
    width: 16px;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    color: var(--auth-text);
    background: #f8fafc;
}

.auth-form-group input:focus {
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-form-group input.has-error {
    border-color: var(--auth-error);
}

/* ========== FIELD ERROR ========== */
.auth-field-error {
    color: var(--auth-error);
    font-size: 0.78rem;
    margin-top: 4px;
    display: none;
}

.auth-field-error.visible {
    display: block;
}

/* ========== PASSWORD WRAPPER ========== */
.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 44px;
}

.auth-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-text-light);
    font-size: 1rem;
    padding: 4px;
}

.auth-eye-btn:hover {
    color: var(--auth-text);
}

/* ========== PASSWORD STRENGTH ========== */
.password-strength {
    height: 4px;
    background: var(--auth-border);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.strength-bar.weak { width: 33%; background: var(--auth-error); }
.strength-bar.medium { width: 66%; background: #f59e0b; }
.strength-bar.strong { width: 100%; background: var(--auth-success); }

/* ========== CHECKBOX ========== */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--auth-text-light);
    margin-bottom: 12px;
}

.auth-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox-group label {
    cursor: pointer;
    line-height: 1.4;
}

/* ========== OPTIONS ROW (Remember + Forgot) ========== */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-forgot-link {
    font-size: 0.85rem;
    color: var(--auth-primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

/* ========== PRIMARY AUTH BUTTON ========== */
.auth-btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--auth-primary), #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

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

/* ========== ALERTS ========== */
.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: none;
    line-height: 1.4;
}

.auth-alert.visible {
    display: block;
}

.auth-alert-error {
    background: #fef2f2;
    color: var(--auth-error);
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ========== FOOTER LINK ========== */
.auth-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--auth-text-light);
}

.auth-footer-link a {
    color: var(--auth-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* ============================================================
   NAVBAR AUTH BUTTONS
   ============================================================ */
.nav-auth-divider {
    display: none;
}

.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Login button — plain text style, no border */
.nav-btn-login {
    color: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
    background: transparent !important;
    padding: 8px 14px !important;
    font-weight: 500;
}

.nav-btn-login:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.nav-btn-signup {
    background: var(--auth-primary);
    color: #fff !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    border: 2px solid var(--auth-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
}

.nav-btn-signup:hover {
    background: var(--auth-primary-hover);
    border-color: var(--auth-primary-hover);
}

.nav-btn-logout {
    color: var(--auth-text-light) !important;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
}

.nav-btn-logout:hover {
    color: var(--auth-error) !important;
}

.nav-user-greeting {
    color: var(--auth-text);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {

    /* Auth Card */
    .auth-wrapper {
        padding: 24px 16px;
        min-height: calc(100vh - 60px);
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .auth-card h1 {
        font-size: 1.3rem;
    }

    .auth-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .auth-btn-primary {
        padding: 12px;
    }

    /* Navbar Auth - Stack vertically on mobile */
    .nav-auth-divider {
        display: block;
        border-top: 1px solid var(--auth-border);
        margin: 8px 0;
        padding: 0;
        width: 100%;
    }

    .nav-auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .nav-btn-login,
    .nav-btn-signup {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 16px !important;
        font-size: 0.95rem;
    }

    .nav-user-greeting {
        padding: 8px 0;
        text-align: center;
        width: 100%;
    }

    .nav-btn-logout {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px;
    }

    /* Options row stacks */
    .auth-options-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .auth-card {
        padding: 24px 16px;
    }

    .auth-card h1 {
        font-size: 1.2rem;
    }

    .auth-subtitle {
        font-size: 0.82rem;
    }

    .auth-form-group input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}
/* ============================================================
   ACTIVATION PAGE
   ============================================================ */
.activation-card {
    max-width: 500px;
}

.activation-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* ========== STATUS BOX ========== */
.activation-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    margin-bottom: 24px;
}

.activation-status.activated {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.activation-status-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fbbf24;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activation-status.activated .activation-status-icon {
    background: #22c55e;
}

.activation-status-text {
    display: flex;
    flex-direction: column;
}

.activation-status-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #92400e;
}

.activation-status.activated .activation-status-label {
    color: #15803d;
}

.activation-status-desc {
    font-size: 0.82rem;
    color: #a16207;
    margin-top: 2px;
}

.activation-status.activated .activation-status-desc {
    color: #16a34a;
}

/* ========== LICENSE INPUT ========== */
.license-input-wrap {
    position: relative;
}

.license-input-wrap input {
    width: 100%;
    padding: 12px 50px 12px 14px;
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    background: #f8fafc;
    color: var(--auth-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.license-input-wrap input:focus {
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.license-input-wrap input.has-error {
    border-color: var(--auth-error);
}

.license-paste-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--auth-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.license-paste-btn:hover {
    background: var(--auth-primary-hover);
}

/* ========== PURCHASE BOX ========== */
.activation-purchase-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid var(--auth-border);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.purchase-info h3 {
    font-size: 1.15rem;
    color: var(--auth-text);
    margin-bottom: 14px;
}

.purchase-info h3 i {
    color: #f59e0b;
    margin-right: 6px;
}

.purchase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.purchase-features li {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.purchase-features li i {
    color: #22c55e;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.purchase-price {
    margin-bottom: 18px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--auth-text);
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--auth-text-light);
    margin-top: 2px;
}

/* Gumroad Button */
.btn-gumroad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff90e8, #ff6b6b);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-gumroad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.purchase-note {
    font-size: 0.8rem;
    color: var(--auth-text-light);
    margin-top: 14px;
    line-height: 1.5;
}

.purchase-note i {
    color: #3b82f6;
    margin-right: 4px;
}

/* ========== SKIP BUTTON ========== */
.activation-skip {
    text-align: center;
    margin-top: 20px;
}

.btn-skip {
    background: none;
    border: none;
    color: var(--auth-text-light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-skip:hover {
    background: #f1f5f9;
    color: var(--auth-text);
}

.btn-skip i {
    margin-right: 4px;
}

/* ========== ACTIVATION RESPONSIVE ========== */
@media (max-width: 768px) {
    .activation-card {
        max-width: 100%;
    }

    .purchase-features {
        grid-template-columns: 1fr;
    }

    .activation-status {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .price-amount {
        font-size: 2rem;
    }

    .license-input-wrap input {
        font-size: 0.8rem;
        padding: 11px 48px 11px 10px;
    }
}

@media (max-width: 380px) {
    .activation-purchase-box {
        padding: 18px 14px;
    }

    .purchase-info h3 {
        font-size: 1rem;
    }
}
/* ============================================================
   NAVBAR BACKGROUND FIX
   ============================================================ */
