/**
 * File: frontend-auth-pages.css
 * Purpose: Elite "Zero-Scroll" Authentication UI for HyperDAF.
 * Status: Universal Grid (All Devices), Ultra-Compact, Facebook/LinkedIn Level.
 */

/* ---------------------------------------------------------
   1. MASTER WRAPPER (Full Viewport, No Scroll)
   --------------------------------------------------------- */
.daf-auth-master-wrap {
    min-height: 100vh;
    width: 100%;
    background-color: #f0f2f5; /* Light Solid Slate */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', -apple-system, sans-serif;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden; /* Anti-Scroll */
}

.daf-auth-box {
    width: 100%;
    max-width: 480px; /* Perfect slim width */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 🚀 Branding (Small & Sharp) */
.daf-auth-brand {
    text-align: center;
}

.daf-auth-brand a {
    font-size: 24px;
    font-weight: 900;
    color: #1c1e21;
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   2. THE MAIN CARD (Maximum Compression)
   --------------------------------------------------------- */
.daf-auth-main-card {
    background: #ffffff;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    padding: 25px 30px;
    box-sizing: border-box;
}

.daf-auth-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1c1e21;
    margin: 0 0 15px 0;
    text-align: center;
}

/* ---------------------------------------------------------
   3. UNIVERSAL GRID SYSTEM (Force 2-Columns)
   --------------------------------------------------------- */
.daf-input-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Force side-by-side always */
    gap: 10px;
    margin-bottom: 10px;
}

/* Login/Forgot Field (Full Width) */
.daf-form-field {
    margin-bottom: 10px;
}

/* ---------------------------------------------------------
   4. INPUT ELEMENTS (Elite Slim Style)
   --------------------------------------------------------- */
.daf-auth-body input[type="text"],
.daf-auth-body input[type="email"],
.daf-auth-body input[type="password"],
.daf-auth-body input[type="date"],
.daf-auth-body select {
    width: 100%;
    height: 40px; /* Slim height for zero scroll */
    padding: 0 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    background-color: #f5f6f7;
    font-size: 14px;
    color: #1c1e21;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.daf-auth-body input:focus,
.daf-auth-body select:focus {
    border-color: #1877f2; /* Facebook Blue */
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.1);
}

/* Password Eye Toggle */
.daf-pass-wrap {
    position: relative;
    width: 100%;
}

.daf-eye-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8d949e;
    font-size: 18px;
}

/* ---------------------------------------------------------
   5. BUTTONS & UTILITY
   --------------------------------------------------------- */
.daf-form-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.daf-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #606770;
    cursor: pointer;
}

.daf-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
}

.daf-auth-btn {
    width: 100%;
    height: 44px;
    background-color: #1877f2; /* Professional Action Blue */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.daf-auth-btn:hover { background-color: #166fe5; }

/* ---------------------------------------------------------
   6. FOOTER & ALERTS
   --------------------------------------------------------- */
.daf-form-footer-note {
    font-size: 11px;
    color: #606770;
    text-align: center;
    margin-bottom: 12px;
}

.daf-auth-nav-hint {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dddfe2;
    text-align: center;
    font-size: 14px;
    color: #1c1e21;
}

.daf-auth-nav-hint a {
    color: #1877f2;
    font-weight: 700;
    text-decoration: none;
}

.daf-auth-legal {
    text-align: center;
    font-size: 12px;
    color: #8d949e;
}

/* ❌ Alert Styling */
.daf-auth-alert.error {
    background: #ffebe8;
    border: 1px solid #dd3c10;
    color: #dd3c10;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

/* ---------------------------------------------------------
   7. RESPONSIVE REFINEMENTS
   --------------------------------------------------------- */
@media (max-width: 480px) {
    .daf-auth-main-card { padding: 20px; }
    .daf-input-row { gap: 8px; } /* Slightly tighter gap on small screens */
    .daf-auth-brand a { font-size: 20px; }
    .daf-auth-body h2 { font-size: 16px; }
}