/**
 * File: frontend-auth-pages.css
 * Location: /assets/css/frontend-auth-pages.css
 * Purpose: Elite Ultra-Compact UI for HyperDAF.com.
 * Status: Meta Boxes Height Reduced, Universal Grid, Zero Scroll.
 */

/* 🎯 Standalone Root (Solid Sharp Background) */
.daf-auth-standalone {
    min-height: 100vh;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ⬅️ Ultra-Compact Back Button */
.daf-auth-back-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #dddfe2;
    color: #1c1e21 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 100;
}

.daf-auth-back-btn:hover { border-color: #2271b1; color: #2271b1 !important; }

/* 📦 Sharp Compact Card (Maximum Height Reduction) */
.daf-auth-card {
    width: 100%;
    background-color: #ffffff;
    padding: 12px 25px; /* Vertical padding 20% reduced again */
    border-radius: 8px;
    border: 1px solid #dddfe2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.slim-card { max-width: 330px; }
.signup-wide { max-width: 430px; } 

/* 🖋️ HyperDAF Branding Section */
.daf-auth-intro {
    text-align: center;
    margin-bottom: 8px; /* Extra tightening */
}

.daf-auth-intro h1 {
    font-size: 19px; 
    font-weight: 900;
    color: #2271b1;
    margin: 0;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 0.9;
}

.daf-auth-intro p {
    font-size: 10px;
    color: #606770;
    margin: 1px 0 0;
    font-weight: 600;
}

/* 📏 Universal Grid (Forced Side-by-Side on All Devices) */
.daf-grid-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; 
    gap: 8px; 
}

/* 📝 Field Groups (Compact) */
.daf-field-group {
    margin-bottom: 5px; /* Minimum margin */
}

.daf-field-group label {
    display: block;
    margin-bottom: 1px;
    font-weight: 700;
    color: #4b4f56;
    font-size: 10px; 
    line-height: 1.1;
}

.daf-auth-card input, 
.daf-auth-card select {
    width: 100%;
    padding: 5px 10px; /* Slimmer input height */
    border: 1px solid #dddfe2;
    border-radius: 6px;
    background-color: #f5f6f7;
    font-size: 12.5px;
    color: #1c1e21;
    box-sizing: border-box;
    transition: 0.2s;
}

.daf-auth-card input:focus, 
.daf-auth-card select:focus {
    border-color: #2271b1;
    background-color: #ffffff;
    outline: none;
}

/* 👁️ Password Eye Icon */
.daf-password-box { position: relative; }
.daf-toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8d949e;
    font-size: 14px;
    z-index: 5;
}

/* ⚙️ Meta & Terms (Slimmed to Absolute Minimum) */
.daf-auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; /* Height reduction */
    font-size: 10.5px;
}

.daf-remember-label, .daf-terms-wrap label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #606770;
    font-weight: 600;
}

.daf-terms-wrap {
    margin-bottom: 6px; /* Height reduction */
    background: #f9fafb;
    padding: 3px 8px; /* Tighter padding */
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

.daf-auth-card input[type="checkbox"] {
    width: 12px;
    height: 12px;
    accent-color: #2271b1;
}

/* 🚀 Sharp Solid Submit Button */
.daf-auth-submit-btn {
    width: 100%;
    padding: 7px; /* Slimmer button */
    background-color: #2271b1;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.daf-auth-submit-btn:hover { background-color: #1a5a8e; }

/* 🔄 Switcher Link Section (Compact) */
.daf-auth-switcher {
    text-align: center;
    margin-top: 6px; /* Reduced margin */
    padding-top: 6px; /* Reduced padding */
    border-top: 1px solid #dddfe2;
    font-size: 10.5px;
    color: #606770;
}

.daf-auth-switcher a {
    color: #2271b1;
    font-weight: 700;
    text-decoration: none;
}

/* 📱 Mobile Force Grid - Anti-Scroll Overrides */
@media (max-width: 480px) {
    .daf-auth-standalone { padding-top: 35px; }
    .daf-auth-card { padding: 10px 15px; }
    .daf-grid-row { gap: 5px !important; }
    .daf-auth-intro h1 { font-size: 17px; }
    .daf-auth-intro p { font-size: 9.5px; }
    .daf-auth-submit-btn { padding: 6px; font-size: 12.5px; }
}