/* ============================================
   pages.css
   Page-specific styles: login, check-in station,
   access denied
   ============================================ */

/* === Login Page === */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
}
.login-box {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    animation: slideUp 0.5s ease;
}
.login-logo { 
    text-align: center; 
    margin-bottom: 2.5rem;
}
.logo-container {
    width: 100%;
    max-width: min(320px, 80vw);
    height: auto;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container img {
    width: 100%;
    height: auto;
    display: block;
}
[data-theme="light"] .logo-container img {
    filter: brightness(0.9);
}
.login-logo p { 
    color: var(--text-secondary); 
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.demo-credentials {
    margin-top: 24px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid var(--border);
}
.demo-credentials p { margin: 6px 0; color: var(--text-secondary); }
.demo-credentials code {
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', monospace;
    font-size: 11px;
    font-weight: 600;
}

/* === Check-In Station (standalone page) === */
.checkin-container {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.checkin-container.active { display: flex; animation: fadeIn 0.3s ease; }
.checkin-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 48px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    animation: slideUp 0.5s ease;
    box-shadow: var(--shadow);
}

/* === Fingerprint Button === */
.fingerprint-btn {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--border);
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.fingerprint-btn:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}
.fingerprint-btn.scanning {
    border-color: var(--primary);
    animation: fingerprintPulse 1.5s ease-in-out infinite;
}
@keyframes fingerprintPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(3, 9, 64, 0.3); }
    50% { box-shadow: 0 0 0 20px rgba(3, 9, 64, 0); }
}
.fingerprint-icon { 
    width: 80px;
    height: 80px;
    opacity: 0.7;
}
.fingerprint-svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* === Check-In Info === */
.checkin-status {
    font-size: 16px;
    margin-bottom: 16px;
    min-height: 24px;
    font-weight: 500;
}
.checkin-time {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.checkin-date { 
    color: var(--text-secondary); 
    margin-bottom: 24px; 
    font-size: 14px;
    font-weight: 500;
}
.checkin-name {
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* === Dashboard Check-In Section === */
.checkin-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.checkin-section h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.checkin-section p { 
    color: var(--text-secondary); 
    margin-bottom: 24px;
    font-size: 14px;
}
.checkin-fingerprint {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.checkin-fingerprint:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}
.checkin-fingerprint.scanning {
    border-color: var(--primary);
    animation: fingerprintPulse 1.5s ease-in-out infinite;
}
.checkin-fingerprint .material-icons {
    font-size: 48px;
    color: var(--primary);
}
.checkin-result {
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    min-height: 24px;
}
.time-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

/* === Access Denied === */
.access-denied {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 24px;
}
.access-denied.active { display: flex; animation: fadeIn 0.3s ease; }
.access-denied .material-icons {
    font-size: 80px;
    color: var(--danger);
    margin-bottom: 20px;
}
