/**
 * AeroBase WMS - Aerospace Warehouse Management System
 * High-Density Modern Industrial Login Experience
 * Version: 2.2
 */

/* Hide standard global footer bar on the dedicated full-screen login page */
body:has(.aerobase-login-wrapper) footer.footer,
.aerobase-login-wrapper ~ footer.footer,
.aerobase-login-wrapper + footer.footer {
    display: none !important;
}

/* Base Wrapper & Atmospheric Canvas */
.aerobase-login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background-color: #060B19;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Atmospheric Ambient Canvas Backdrop */
.aerobase-login-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    background: 
        radial-gradient(circle at 15% 20%, rgba(15, 98, 254, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(0, 29, 108, 0.2) 0%, transparent 60%),
        linear-gradient(145deg, #050A17 0%, #081226 50%, #030610 100%);
}

.aerobase-login-bg .grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.aerobase-login-bg .radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(15, 98, 254, 0.08);
    box-shadow: 
        0 0 0 160px rgba(15, 98, 254, 0.02),
        0 0 0 320px rgba(15, 98, 254, 0.02),
        0 0 0 480px rgba(15, 98, 254, 0.015);
}

/* Master Login Elevation Card */
.aerobase-login-card {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1060px;
    min-height: 640px;
    border-radius: 24px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 
        0 30px 70px -15px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.2);
    animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* -------------------------------------------------------------
   Left Column: Telemetry & Showcase Panel
------------------------------------------------------------- */
.login-telemetry-panel {
    width: 48%;
    background: linear-gradient(165deg, #091830 0%, #031024 55%, #020814 100%);
    color: #FFFFFF;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.login-telemetry-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0F62FE, #00D2FF, #10B981);
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-symbol svg {
    filter: drop-shadow(0 4px 12px rgba(15, 98, 254, 0.45));
}

.brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 2px;
    color: #FFFFFF;
    line-height: 1;
    margin: 0;
}

.brand-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 2.5px;
    color: #38BDF8;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 98, 254, 0.15);
    border: 1px solid rgba(15, 98, 254, 0.35);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.telemetry-badge .badge-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #93C5FD;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #10B981;
}

.status-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #10B981;
    animation: statusRingPulse 2s infinite;
}

@keyframes statusRingPulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero-quote h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: #F8FAFC;
    margin-bottom: 12px;
}

.hero-quote p {
    font-size: 13px;
    line-height: 1.6;
    color: #94A3B8;
    margin-bottom: 32px;
}

/* Feature Highlights */
.feature-pills-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-pill-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.feature-pill-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(15, 98, 254, 0.35);
    transform: translateX(4px);
}

.feature-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(15, 98, 254, 0.2);
    color: #60A5FA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-pill-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 2px;
}

.feature-pill-text span {
    font-size: 11.5px;
    color: #94A3B8;
    line-height: 1.4;
    display: block;
}

.security-chip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    color: #64748B;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
}

/* -------------------------------------------------------------
   Right Column: Authentication Form Panel
------------------------------------------------------------- */
.login-form-panel {
    width: 52%;
    padding: 52px 48px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-panel-header {
    margin-bottom: 28px;
}

.form-panel-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.form-panel-subtitle {
    font-size: 13.5px;
    color: #64748B;
    margin-bottom: 0;
    line-height: 1.5;
}

.mobile-brand-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #0F62FE;
    letter-spacing: 1px;
}

/* Form Controls */
.form-label-aerobase {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-group-aerobase {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.form-control-aerobase {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    color: #0F172A;
    background-color: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control-aerobase:hover {
    border-color: #CBD5E1;
    background-color: #FFFFFF;
}

.form-control-aerobase:focus {
    border-color: #0F62FE;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
    outline: none;
}

.form-control-aerobase:focus + .input-prefix-icon,
.input-group-aerobase:focus-within .input-prefix-icon {
    color: #0F62FE;
}

.btn-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color 0.2s ease;
    z-index: 2;
}

.btn-password-toggle:hover {
    color: #0F62FE;
}

/* Custom Checkbox */
.custom-checkbox-aerobase .form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 4px;
    border-color: #CBD5E1;
}

.custom-checkbox-aerobase .form-check-input:checked {
    background-color: #0F62FE;
    border-color: #0F62FE;
}

.role-hint-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: help;
}

/* Action Submit Button */
.btn-aerobase-submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #0F62FE 0%, #0043CE 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px -4px rgba(15, 98, 254, 0.42);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-aerobase-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #0050E6 0%, #0036A8 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(15, 98, 254, 0.58);
}

.btn-aerobase-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-aerobase-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    box-shadow: none;
}

/* Form Panel Footer */
.form-panel-footer {
    padding-top: 24px;
    border-top: 1px solid #F1F5F9;
    text-align: center;
}

.auth-roles-preview {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.auth-roles-preview .badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    color: #64748B;
    background-color: #F8FAFC;
    border-color: #E2E8F0;
}

.copyright-subtext {
    font-size: 11px;
    color: #94A3B8;
    line-height: 1.5;
}

/* -------------------------------------------------------------
   Responsive Breakpoints
------------------------------------------------------------- */
@media screen and (max-width: 991.98px) {
    .aerobase-login-card {
        flex-direction: column;
        max-width: 520px;
        min-height: auto;
    }

    .login-telemetry-panel {
        width: 100%;
        padding: 36px 32px;
    }

    .feature-pills-list {
        display: none;
    }

    .hero-quote p {
        margin-bottom: 16px;
    }

    .login-form-panel {
        width: 100%;
        padding: 40px 32px;
    }
}

@media screen and (max-width: 575.98px) {
    .aerobase-login-wrapper {
        padding: 16px 12px;
    }

    .login-telemetry-panel {
        padding: 28px 20px;
    }

    .login-form-panel {
        padding: 28px 20px;
    }

    .form-panel-title {
        font-size: 22px;
    }

    .brand-title {
        font-size: 22px;
    }
}