/* ═══════════════════════════════════════════════════════════════════
   CARGO CLEAR - 15-INCH DEFAULT (COMPACT + FORCED UPWARD SHIFT)
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --brand-navy: #0F172A;
    --brand-emerald: #0b3d2c; 
    --brand-emerald-light: #20c997; 
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.05);
}

/* 1. NUKES ERP FONTS */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Plus Jakarta Sans', sans-serif !important; 
}

/* 2. NUKES ERP BACKGROUNDS & ANIMATIONS */
body {
    width: 100vw !important;
    height: 120vh !important;
    background: #f4f6f8 url('/static/asset-images/cargo_clear_logo.svg') no-repeat top center !important;
    background-size: cover !important; 
    animation: none !important; 
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    color: var(--brand-navy) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   DEFAULT STYLES
   ═══════════════════════════════════════════════════════════════════ */

.auth-page {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ⬇️ FORCED UPWARD SHIFT - Increase or decrease 35vh to move it further */
    padding-bottom: 35vh !important; 
}

.glass-card {
    position: relative;
    width: 600px; 
    height: 340px; 
    border-radius: 16px;
    
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid transparent;
    box-shadow: none;
    
    overflow: hidden;
    transition: all 0.6s var(--ease-spring);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; 
}

.glass-card:hover, .glass-card:focus-within, .glass-card:active {
    background: rgba(11, 61, 44, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 100px rgba(11, 61, 44, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transform: translateY(-5px); 
}

.front-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    padding-top: 33%;
    transition: opacity 0.4s ease;
}

.front-face::after {
    content: 'HOVER TO INITIALIZE';
    color: var(--brand-emerald);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(11, 61, 44, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.75; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11, 61, 44, 0.25); }
}

.glass-card:hover .front-face, .glass-card:focus-within .front-face, .glass-card:active .front-face {
    opacity: 0;
    pointer-events: none;
}

.back-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row; 
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-spring);
}

.glass-card:hover .back-face, .glass-card:focus-within .back-face, .glass-card:active .back-face {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.brand-pane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05); 
    border-right: 1px solid rgba(255, 255, 255, 0.2); 
}

.inner-logo {
    width: 100%;
    max-width: 180px;
    height: 160px; 
    object-fit: cover; 
    object-position: center top; 
    border-radius: 16px; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)); 
}

.form-pane {
    flex: 1.2; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-form {
    width: 100%;
    max-width: 260px; 
}

.login-form h2 {
    color: var(--brand-emerald);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-emerald);
    margin-bottom: 6px;
    margin-left: 4px;
}

.form-control, .form-group input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(11, 61, 44, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-navy);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--brand-emerald-light);
    box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.15);
    transform: translateY(-2px);
}

.btn-primary {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: linear-gradient(135deg, var(--brand-emerald-light) 0%, #ffffff 100%);
    color: var(--brand-emerald);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(32, 201, 151, 0.3);
}

.auth-error {
    background: rgba(232, 56, 79, 0.1);
    border-left: 3px solid #E8384F;
    padding: 10px;
    margin-bottom: 14px;
    color: #E8384F;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.system-status {
    text-align: center;
    margin-top: 14px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.system-status a {
    color: #64748b !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.system-status a:hover {
    color: var(--brand-emerald-light) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   MEDIA QUERIES 
   ═══════════════════════════════════════════════════════════════════ */

/* 1. LARGE DESKTOPS (Ultrawides & 2525px Monitors) */
@media (min-width: 1600px) {
    .glass-card {
        width: 760px;
        height: 440px;
        border-radius: 20px;
    }
    .brand-pane, .form-pane { padding: 30px; }
    .inner-logo { max-width: 240px; height: 200px; }
    .login-form { max-width: 340px; }
    .login-form h2 { font-size: 22px; margin-bottom: 24px; }
    .form-control, .form-group input { padding: 14px 16px; font-size: 14px; }
    .btn-primary { padding: 14px; font-size: 13px; }
}

/* 2. 14-inch Laptops (up to ~1366px width) */
@media (max-width: 1366px) {
    .glass-card {
        width: 560px;
        height: 320px;
    }
    .inner-logo { max-width: 160px; height: 140px; }
    .brand-pane, .form-pane { padding: 20px; }
    .login-form { max-width: 240px; }
    .login-form h2 { font-size: 16px; margin-bottom: 12px; }
}

/* 3. Tablets & Landscape Devices (up to 1024px) */
@media (max-width: 1024px) {
    .glass-card {
        width: 520px;
        height: 300px;
    }
}

/* 4. Mobile Phones (Up to 768px, covers modern iPhones) */
@media (max-width: 768px) {
    .glass-card {
        width: 90vw;
        max-width: 340px;
        height: 400px;
        border-radius: 16px;
    }
    .form-pane { padding: 24px; }
    .login-form { max-width: 100%; }
    .front-face::after { content: 'TAP TO INITIALIZE'; }
    .brand-pane { display: none; }
}