*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-dark: #002B5B;
    --blue-mid: #003F7F;
    --blue-accent: #0059B3;
    --blue-light: #1A78C2;
    --silver: #C8D6E5;
    --silver-light: #EBF2FA;
    --white: #ffffff;
    --text-muted: #7A93AD;
    --text-body: #1C2B3A;
    --border: rgba(200, 214, 229, 0.4);
    --input-bg: rgba(255,255,255,0.06);
}

body {
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    background: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,89,179,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,89,179,0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridScroll 20s linear infinite;
    pointer-events: none;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,89,179,0.25) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.card {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-left {
    background: linear-gradient(160deg, #003F7F 0%, #002040 100%);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.panel-left::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,89,179,0.6), transparent);
}


.brand { position: relative; z-index: 1; }

.brand-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--white);
    line-height: 1;
}
.brand-logo span { color: #1A78C2; }
.brand-divider {
    width: 40px;
    height: 2px;
    background: #1A78C2;
    margin: 16px 0;
}
.brand-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--silver);
    text-transform: uppercase;
}
.bay-grid { position: relative; z-index: 1; margin: 40px 0; }
.bay-grid-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 500;
}
.bays {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.panel-right {
    background: var(--white);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: #1A78C2;
    margin-bottom: 18px;
}
.login-tag::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: #1A78C2;
}
.login-heading {
    font-family: 'Rajdhani', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 6px;
}
.login-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 300;
}

.form-group { margin-bottom: 20px; }

.form-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: #5A7A96;
    display: block;
    margin-bottom: 8px;
}

.input-wrap { position: relative; }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #A0B8CC;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    border: 1.5px solid #D4E3EF;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-body);
    background: #F7FAFE;
    outline: none;
    transition: all 0.2s;
}

.form-input::placeholder { color: #A8BECF; font-weight: 300; }

.form-input:focus {
    border-color: #1A78C2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,120,194,0.12);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 28px;
}

.forgot-link {
    font-size: 12px;
    color: #1A78C2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover { color: #003F7F; }

.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #003F7F 0%, #1A78C2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0,63,127,0.3);
    margin-top:32px;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(0,63,127,0.35); }
.btn-login:hover::before { opacity: 1; }
.btn-login:active { transform: translateY(1px); }


.card-icon { width: 18px; height: 18px; color: currentColor; }

.copyright { margin-top: 28px; font-size: 11px; color: #B0C8DA; text-align: center; }
.auth-img {
    width: 210px;         
    height: auto;
    object-fit: contain;
    display: block;
    transition: 0.3s ease;
    margin-bottom: 7px;
}
@media (max-width: 720px) {
    body { padding: 0; align-items: flex-start; }
    .card { grid-template-columns: 1fr; border-radius: 0; min-height: 100vh; }
    .panel-left { padding: 40px 28px 32px; }
    .panel-right { padding: 36px 28px 40px; }
    .login-heading { font-size: 30px; }
}

@media (max-width: 420px) {
    .bays { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .bay { height: 38px; }
    .bay-number { font-size: 12px; }
}
