/**
 * Modern Authentication Page Styling
 * Improves the look and priority order of authentication blocks
 */

/* Main Layout Container */
.authentication-modern-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Authentication Blocks */
.auth-block {
    margin-bottom: 30px;
}

.auth-block-primary {
    /* Block 1: Biometric - Most prominent */
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.auth-block-secondary {
    /* Block 2: Social Login - Secondary prominence */
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.auth-block-fallback {
    /* Block 3: Email/Password + Create Account - Less prominent */
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

/* Modern Auth Boxes */
.modern-auth-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.modern-auth-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modern-auth-box .page-subheading {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.create-account-fallback .page-subheading {
    color: #6c757d;
    font-size: 18px;
}

/* Modern Input Fields */
.modern-input {
    height: 48px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.modern-input::placeholder {
    color: #adb5bd;
}

/* Modern Buttons */
.modern-btn {
    height: 48px;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-transform: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.modern-btn-secondary:hover {
    background: #5a6268;
}

/* Form Labels */
.modern-auth-box label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Form Groups */
.modern-auth-box .form-group {
    margin-bottom: 20px;
}

/* Links */
.modern-auth-box a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modern-auth-box a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Content Text */
.modern-auth-box .content {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 767px) {
    .authentication-modern-layout {
        padding: 15px;
    }
    
    .auth-block-primary,
    .auth-block-secondary,
    .auth-block-fallback {
        padding: 20px 15px;
    }
    
    .modern-auth-box {
        margin-bottom: 20px;
    }
}

/* Social Login Improvements */
#socialLoginContainer {
    margin: 0;
}

#socialLoginBtn {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

#google-custom-button-container,
#yahoo-custom-button-container,
#ms-custom-button-container {
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#google-custom-button-container:hover,
#yahoo-custom-button-container:hover,
#ms-custom-button-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Divider Styling */
#socialLoginseprator {
    margin: 25px 0;
    color: #6c757d;
    font-weight: 500;
}

/* Priority Visual Indicators (Optional - can be removed) */
.auth-block-primary,
.auth-block-secondary,
.auth-block-fallback {
    position: relative;
}
