:root {
    --brand-blue: #005b96;
    --brand-blue-dark: #073a5d;
    --brand-blue-soft: #e7f4ff;
    --brand-yellow: #f5d900;
    --brand-yellow-deep: #f4b400;
    --ink: #111827;
    --muted: #64748b;
    --surface: #ffffff;
}

* {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 15%, rgba(245, 217, 0, 0.22), transparent 28%),
        radial-gradient(circle at 88% 85%, rgba(0, 91, 150, 0.16), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef6fb 45%, #fffbe1 100%);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.login-page::before,
.login-page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-18deg);
}

.login-page::before {
    width: 420px;
    height: 90px;
    left: -90px;
    bottom: 18%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(245, 217, 0, 0.88), rgba(244, 180, 0, 0.25));
}

.login-page::after {
    width: 360px;
    height: 78px;
    right: -90px;
    top: 18%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 91, 150, 0.24), rgba(0, 91, 150, 0.05));
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 44px 0;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(7, 58, 93, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 70px rgba(7, 58, 93, 0.16);
    backdrop-filter: blur(18px);
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 54px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(7, 58, 93, 0.98) 0%, rgba(0, 91, 150, 0.94) 58%, rgba(2, 119, 189, 0.92) 100%);
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: auto -70px -95px -60px;
    height: 245px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(120deg, rgba(245, 217, 0, 0.95), rgba(244, 180, 0, 0.2));
    transform: rotate(-9deg);
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    right: -76px;
    top: -82px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.brand-content,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin-bottom: 42px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.brand-logo img {
    width: 124px;
    height: auto;
}

.brand-title {
    max-width: 500px;
    margin: 0;
    font-size: clamp(2.45rem, 4.4vw, 4.5rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-text {
    max-width: 460px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.65;
}

.brand-streaks {
    position: absolute;
    inset: auto 0 42px 0;
    z-index: 1;
    height: 180px;
    pointer-events: none;
}

.brand-streaks span {
    position: absolute;
    display: block;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-yellow), rgba(255, 255, 255, 0.1));
    transform: rotate(-42deg);
    opacity: 0.92;
}

.brand-streaks span:nth-child(1) {
    width: 170px;
    left: 24px;
    bottom: 48px;
}

.brand-streaks span:nth-child(2) {
    width: 220px;
    left: 185px;
    bottom: 42px;
    height: 36px;
}

.brand-streaks span:nth-child(3) {
    width: 130px;
    left: 395px;
    bottom: 78px;
}

.brand-streaks span:nth-child(4) {
    width: 92px;
    left: 116px;
    bottom: 105px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), var(--brand-yellow-deep));
}

.brand-footer {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.98));
}

.login-form {
    width: 100%;
    max-width: 380px;
}

.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.mobile-logo img {
    height: 96px;
}

.login-eyebrow {
    margin-bottom: 10px;
    color: var(--brand-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-title {
    margin-bottom: 30px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0;
}

.login-form .alert {
    border-radius: 14px;
    border-width: 1px;
}

.login-form .form-floating > .form-control {
    height: 58px;
    border: 1px solid #d8e3ea;
    border-radius: 16px;
    background-color: #f8fbfd;
    color: var(--ink);
    box-shadow: none;
}

.login-form .form-floating > .form-control:focus {
    border-color: var(--brand-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 91, 150, 0.14);
}

.login-form .form-floating > label {
    color: var(--muted);
}

.login-form .form-check-input {
    border-color: #c9d8e2;
}

.login-form .form-check-input:checked {
    border-color: var(--brand-blue);
    background-color: var(--brand-blue);
}

.login-button {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 91, 150, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-button:hover,
.login-button:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(0, 91, 150, 0.34);
}

.copyright {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 24px;
    color: #8796a3;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 920px) {
    .login-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: auto;
        padding: 42px 24px 76px;
    }

    .mobile-logo {
        display: block;
    }

    .copyright {
        left: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    .login-shell {
        width: min(100% - 20px, 1080px);
        padding: 20px 0;
    }

    .login-card {
        border-radius: 22px;
    }

    .form-panel {
        padding: 32px 18px 72px;
    }
}
