:root {
    --brand-navy: #0a1f3c;
    --brand-navy-deep: #051226;
    --brand-cyan: #00e5d4;
    --brand-teal: #009688;
    --card-bg: #ffffff;
    --input-bg: #f8fafc;
    --input-border: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #040d1a;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(0, 229, 212, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(14, 116, 144, 0.20) 0%, transparent 48%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-main);
}

#login-root {
    width: 100%;
    max-width: 1080px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 229, 212, 0.16);
    min-height: 640px;
}

/* LEFT BRAND PANEL */
.brand-side {
    position: relative;
    background: linear-gradient(160deg, #06172e 0%, #092142 52%, #051326 100%);
    color: #ffffff;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Architectural blueprint grid overlay */
.brand-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 212, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 212, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Luminous spotlight behind the large logo */
.brand-side::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 229, 212, 0.22) 0%, rgba(14, 165, 233, 0.08) 45%, transparent 72%);
    pointer-events: none;
}

.brand-top-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 212, 0.10);
    border: 1px solid rgba(0, 229, 212, 0.28);
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
}

.brand-center {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
}

/* LARGE COMMANDING LOGO SHOWCASE */
.brand-logo-container {
    width: 235px;
    height: 235px;
    border-radius: 32px;
    padding: 6px;
    background: linear-gradient(145deg, rgba(0, 229, 212, 0.55), rgba(56, 189, 248, 0.15), rgba(0, 229, 212, 0.35));
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.55),
        0 0 38px rgba(0, 229, 212, 0.22);
    margin-bottom: 24px;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.16);
    border-radius: 26px;
    display: block;
}

.brand-text h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #ffffff 0%, #99f6e4 100%);
                -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 390px;
    margin: 0 auto 22px auto;
}

.feature-pills {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-align: left;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 9px 14px;
    border-radius: 12px;
}

.feature-pill i {
    color: var(--brand-cyan);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.brand-bottom-note {
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* RIGHT FORM PANEL */
.form-side {
    padding: 48px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #334155;
}

.auth-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-teal);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}

.custom-input-group {
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
}

.custom-input-group:focus-within {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(0, 150, 136, 0.12);
}

.custom-input-group .input-group-text {
    background: transparent;
    border: none;
    color: #64748b;
    padding-left: 16px;
    padding-right: 10px;
}

.custom-input-group:focus-within .input-group-text {
    color: var(--brand-teal);
}

.custom-input-group .form-control {
    background: transparent;
    border: none;
    padding: 13px 14px 13px 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: none !important;
}

.toggle-password-btn {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 0 16px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.toggle-password-btn:hover {
    color: var(--brand-navy);
}

.btn-login {
    background: linear-gradient(135deg, #071933 0%, #0f3460 50%, #008f7a 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 24px rgba(7, 25, 51, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 143, 122, 0.30);
    color: #ffffff;
}

.btn-login:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.blue_footer_body {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-navy);
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}

.footer-text {
    font-size: 0.73rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 3px;
}

@media (max-width: 880px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    .brand-side {
        padding: 32px 24px;
    }
    .brand-logo-container {
        width: 180px;
        height: 180px;
    }
    .feature-pills {
        display: none;
    }
    .form-side {
        padding: 36px 28px;
    }
}