/* File: public/assets/css/auth.css */

/* 1. RESET & LAYOUT */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* No scrollbars */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* PROFESSIONAL NAVY MESH BACKGROUND */
    background-color: #0f172a; 
    background-image: 
        radial-gradient(at 0% 0%, hsla(217, 91%, 60%, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(180, 75%, 65%, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(217, 91%, 60%, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(180, 75%, 65%, 0.15) 0px, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. WRAPPER (Ensures centering) */
.login-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 3. COMPACT GLASS CARD */
.login-card {
    background: rgba(255, 255, 255, 0.90); /* Higher opacity for cleaner look */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    width: 100%;
    max-width: 380px; /* Reduced width for compactness */
    padding: 32px 28px; /* Tighter padding */
    border-radius: 16px;
    
    /* Deep Floating Shadow */
    box-shadow: 
        0 20px 40px -5px rgba(0, 0, 0, 0.3), 
        0 10px 20px -5px rgba(0, 0, 0, 0.2);
        
    display: flex;
    flex-direction: column;
}

/* 4. BRANDING (Compact) */
.brand-section {
    text-align: center;
    margin-bottom: 20px; /* Reduced from 32px */
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0F172A, #334155);
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.2);
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
}

/* 5. COMPACT FORM */
.form-group {
    margin-bottom: 14px; /* Reduced spacing */
}

.form-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.input-group {
    display: flex;
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #CBD5E1;
    border-right: none;
    color: #64748B;
    border-radius: 8px 0 0 8px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.form-control, .form-select {
    flex: 1;
    padding: 9px 12px; /* Smaller inputs */
    font-size: 13px;
    border: 1px solid #CBD5E1;
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #0F172A;
    background-color: rgba(255, 255, 255, 0.5);
    outline: none;
    transition: all 0.2s ease;
}

.form-select {
    border-left: 1px solid #CBD5E1; 
    border-radius: 8px;
    cursor: pointer;
}

.form-control:focus, .form-select:focus {
    background-color: #FFFFFF;
    border-color: #0F172A;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

/* 6. BUTTON */
.btn-primary {
    background-color: #0F172A;
    color: white;
    border: none;
    padding: 10px; /* Slimmer button */
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
    background-color: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(15, 23, 42, 0.25);
}

.footer-link {
    text-align: center;
}

.forgot-link {
    font-size: 11px;
    color: #64748B;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    color: #0F172A;
    text-decoration: underline;
}

/* 7. ALERTS (Compact) */
.alert {
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    margin-bottom: 14px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
}
.alert-danger {
    color: #B91C1C;
    border: 1px solid #FECACA;
}
.alert-success {
    color: #047857;
    border: 1px solid #A7F3D0;
}