/* =============================================================================
   AUTHENTICATION STYLES
   Login, registration, and password reset pages

   Uses employee CSS design system variables and components.
   Only auth-specific layout and component styles are defined here.
   ============================================================================= */


/* =============================================================================
   1. AUTH PAGE LAYOUT
   Fixed viewport, centered card layout
   ============================================================================= */

.auth-page {
    height: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-canvas);
    padding: var(--space-5);
    box-sizing: border-box;
    overflow: hidden;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Wide wrapper for registration form */
.auth-wrapper--wide {
    max-width: 500px;
}


/* =============================================================================
   2. AUTH CARD
   Glass-morphism card container
   ============================================================================= */

.auth-card {
    background: var(--glass-white-strong);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
}


/* =============================================================================
   3. AUTH BRAND HEADER
   Logo, title, and divider
   ============================================================================= */

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-6);
}

.auth-brand img {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
}

.auth-brand h1 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin: 0;
    letter-spacing: var(--tracking-tight);
}

.auth-divider {
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    margin-top: var(--space-4);
}


/* =============================================================================
   4. AUTH CONTENT SECTIONS
   Headers, sections for multi-step forms
   ============================================================================= */

.auth-header {
    text-align: center;
    margin-bottom: var(--space-4);
}

.auth-header .card-title {
    margin-bottom: var(--space-2);
}

/* Section dividers for multi-section forms (registration) */
.auth-section {
    margin-bottom: var(--space-5);
}

.auth-section-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-light);
}


/* =============================================================================
   5. AUTH STATUS ICONS
   Large emoji/icon indicators for status pages
   ============================================================================= */

.auth-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    display: block;
}

.auth-icon--primary { color: var(--color-primary); }
.auth-icon--success { color: var(--color-success); }
.auth-icon--warning { color: var(--color-warning); }
.auth-icon--danger { color: var(--color-danger); }


/* =============================================================================
   6. AUTH INFO BOX
   Sunken box for instructions/info
   ============================================================================= */

.auth-info-box {
    background: var(--color-surface-sunken);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-5);
    text-align: left;
}

.auth-info-box ul {
    margin: 0;
    padding-left: var(--space-5);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}


/* =============================================================================
   7. AUTH FOOTER & LINKS
   Bottom section with links
   ============================================================================= */

.auth-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.auth-footer-links a {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.auth-form-footer {
    text-align: center;
    margin-top: var(--space-4);
}

/* Inline button wrapper for anchors styled as buttons */
.auth-btn-inline {
    display: inline-flex;
}


/* =============================================================================
   8. iOS PWA FIXES
   Prevent overscroll/bounce on iOS
   ============================================================================= */

@supports (-webkit-touch-callout: none) {
    .auth-page {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        -webkit-overflow-scrolling: none;
        overscroll-behavior: none;
    }
}

@media (display-mode: standalone) {
    .auth-page {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
    }
}


/* =============================================================================
   9. RESPONSIVE
   Mobile adjustments
   ============================================================================= */

@media (max-width: 480px) {
    .auth-page {
        padding: var(--space-4);
        align-items: flex-start;
        padding-top: env(safe-area-inset-top);
    }

    .auth-card {
        padding: var(--space-5);
    }
}
