/* ===================== AUTH NAV ===================== */
.auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1140px;
    margin: 0 auto;
}

.auth-nav .nav-auth-area {
    position: static;
    transform: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-user-email {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===================== AUTH PAGE LAYOUT ===================== */
.auth-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--color-bg);
}

/* ===================== AUTH CARD ===================== */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 48px 40px;
}

.auth-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

/* ===================== AUTH FORM ===================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.auth-field input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-field input::placeholder {
    color: #555568;
}

.auth-field input:focus {
    border-color: var(--color-accent);
}

.auth-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

/* ===================== SOCIAL LOGIN BUTTON ===================== */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
}

.btn-social:hover {
    border-color: rgba(108, 92, 231, 0.4);
    background: rgba(108, 92, 231, 0.06);
}

.btn-google i {
    color: #4285f4;
    font-size: 1.1rem;
}

/* ===================== DIVIDER ===================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

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

.auth-divider span {
    font-size: 0.78rem;
    font-weight: 500;
    color: #555568;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================== STATUS MESSAGES ===================== */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    display: none;
    margin-bottom: 20px;
}

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

.auth-message.error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.auth-message.success {
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid rgba(0, 206, 201, 0.3);
    color: #00cec9;
}

/* ===================== AUTH FOOTER TEXT ===================== */
.auth-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 24px;
}

.auth-footer-text a {
    color: #a29bfe;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer-text a:hover {
    color: var(--color-white);
}

/* ===================== LOADING SPINNER ===================== */
.auth-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: #6c5ce7;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: auth-spin 0.8s linear infinite;
}

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

/* ===================== DASHBOARD ===================== */
.dashboard-page {
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

.dashboard-container {
    width: 100%;
    max-width: 1080px;
}

.dashboard-header {
    margin-bottom: 32px;
}

/* ---------- Tabs ---------- */
.dashboard-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.dashboard-tab i {
    font-size: 0.9rem;
}

.dashboard-tab:hover {
    color: var(--color-text);
}

.dashboard-tab.active {
    color: var(--color-white);
    border-bottom-color: #6c5ce7;
}

.dashboard-tab.active i {
    color: #a29bfe;
}

/* ---------- Panels ---------- */
.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
}

.panel-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px;
}

.panel-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.panel-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
}

.panel-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.panel-value {
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
}

.panel-placeholder {
    text-align: center;
    padding: 60px 24px;
    color: var(--color-text-muted);
}

.panel-placeholder i {
    font-size: 2rem;
    color: rgba(108, 92, 231, 0.25);
    margin-bottom: 16px;
    display: block;
}

.panel-placeholder p {
    font-size: 0.9rem;
}

/* ===================== NAVBAR AUTH AREA (index.html) ===================== */
.nav-auth-area {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-auth-area.ready {
    visibility: visible;
    opacity: 1;
}

.mobile-only {
    display: none;
}

.nav-auth-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-auth-link:hover {
    border-color: var(--color-accent-light);
    color: var(--color-accent-light);
}

.nav-auth-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.nav-auth-user:hover {
    color: var(--color-white);
}

.nav-auth-user i {
    color: #a29bfe;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
}

/* ===================== AUTH RESPONSIVE ===================== */
@media (max-width: 768px) {
    .auth-card {
        padding: 36px 24px;
    }

    .dashboard-tab span {
        display: none;
    }

    .dashboard-tab {
        padding: 12px 16px;
    }

    .auth-nav-right {
        gap: 10px;
    }

    .auth-user-email {
        display: none;
    }

    .nav-auth-area {
        display: none;
    }

    .auth-nav .nav-auth-area {
        display: flex;
    }

    .mobile-only {
        display: list-item;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
}
