:root {
    --navy-900: #061a3a;
    --navy-800: #0a2550;
    --navy-700: #10366f;
    --blue-accent: #2675ff;
    --login-background: #f6f8fc;
    --card-background: #ffffff;
    --text-primary: #10213d;
    --text-secondary: #69758a;
    --border-color: #d6deea;
}

.login-page {
    min-height: 100vh;
    background: var(--login-background);
}

.login-page .navbar {
    min-height: 70px;
    padding-block: 12px;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 4px 18px rgba(6, 26, 58, .16);
}

.login-page .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.01em;
}

.login-page > .container {
    max-width: none;
    margin-top: 0 !important;
    padding: 0;
}

.login-page > .container > .alert {
    position: fixed;
    top: 82px;
    left: 50%;
    z-index: 1070;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(360px, 34%) 1fr;
    min-height: calc(100vh - 70px);
}

.login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    padding: clamp(48px, 6vw, 86px) clamp(34px, 4.5vw, 72px) 48px;
    color: #fff;
    background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 65%, #0c3063 100%);
}

.showcase-shape {
    position: absolute;
    border: 1px solid rgba(87, 147, 220, .15);
    border-radius: 50%;
    pointer-events: none;
}

.showcase-shape-one {
    width: 380px;
    height: 380px;
    top: -170px;
    right: -170px;
    box-shadow: 0 0 0 70px rgba(38, 117, 255, .035);
}

.showcase-shape-two {
    width: 280px;
    height: 280px;
    left: -170px;
    bottom: 20px;
    box-shadow: 0 0 0 55px rgba(255, 255, 255, .025);
}

.showcase-content,
.showcase-benefits {
    position: relative;
    z-index: 1;
}

.showcase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    font-size: 2rem;
}

.showcase-content h1 {
    max-width: 460px;
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.title-accent {
    display: block;
    width: 52px;
    height: 4px;
    margin: 25px 0;
    border-radius: 4px;
    background: var(--blue-accent);
}

.showcase-content p {
    max-width: 440px;
    margin: 0;
    color: #bac8dc;
    font-size: 1.05rem;
    line-height: 1.7;
}

.showcase-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 64px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.benefit-item > i {
    margin-top: 3px;
    color: #6da3ff;
}

.benefit-item strong,
.benefit-item span {
    display: block;
}

.benefit-item strong {
    margin-bottom: 3px;
    font-size: .87rem;
}

.benefit-item span {
    color: #9fb0c7;
    font-size: .72rem;
    line-height: 1.35;
}

.login-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 52px clamp(28px, 6vw, 100px);
    background:
        radial-gradient(circle at 92% 12%, rgba(38, 117, 255, .065), transparent 25%),
        radial-gradient(circle at 8% 88%, rgba(16, 54, 111, .045), transparent 25%),
        var(--login-background);
}

.login-main::before,
.login-main::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(16, 54, 111, .06);
    border-radius: 40px;
    transform: rotate(28deg);
}

.login-main::before {
    width: 280px;
    height: 420px;
    right: -170px;
    top: 8%;
}

.login-main::after {
    width: 240px;
    height: 360px;
    left: -150px;
    bottom: -140px;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: clamp(32px, 4vw, 48px);
    border: 1px solid rgba(16, 54, 111, .07);
    border-radius: 16px;
    background: var(--card-background);
    box-shadow: 0 24px 60px rgba(16, 33, 61, .12);
}

.login-heading {
    margin-bottom: 32px;
    text-align: center;
}

.login-system-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #fff;
    background: var(--navy-900);
    box-shadow: 0 10px 22px rgba(6, 26, 58, .2);
    font-size: 1.65rem;
}

.login-heading h2 {
    margin: 0 0 7px;
    color: var(--text-primary);
    font-size: clamp(1.55rem, 2.3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.025em;
}

.login-heading p {
    margin: 0;
    color: var(--text-secondary);
}

.form-field { margin-bottom: 20px; }

.form-field label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: .9rem;
    font-weight: 600;
}

.field-control { position: relative; }

.field-control input {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 45px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    color: var(--text-primary);
    background: #fff;
    font: inherit;
    user-select: text;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field-control input::placeholder { color: #99a5b6; }

.field-control input:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 4px rgba(16, 54, 111, .11);
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    color: #768499;
    transform: translateY(-50%);
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    color: #68768a;
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle:hover { color: var(--navy-700); background: #eef3f9; }

.password-toggle:focus-visible,
.login-submit:focus-visible,
.register-prompt a:focus-visible {
    outline: 3px solid rgba(38, 117, 255, .35);
    outline-offset: 3px;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--navy-900);
    box-shadow: 0 10px 22px rgba(6, 26, 58, .18);
    font-weight: 650;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.login-submit:hover {
    background: var(--navy-700);
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(6, 26, 58, .23);
}

.login-submit:active { transform: translateY(0); }

.register-prompt {
    margin: 25px 0 0;
    color: var(--text-secondary);
    text-align: center;
    font-size: .9rem;
}

.register-prompt a {
    color: var(--navy-700);
    font-weight: 650;
    text-decoration: none;
}

.register-prompt a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
    .login-shell { grid-template-columns: minmax(320px, 38%) 1fr; }
    .login-showcase { padding-inline: 34px; }
    .showcase-benefits { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 899px) {
    .login-shell { display: block; min-height: calc(100vh - 70px); }
    .login-showcase { display: none; }
    .login-main { min-height: calc(100vh - 70px); padding: 36px 22px; }
}

@media (max-width: 576px) {
    .login-page .navbar { min-height: 62px; padding-block: 9px; }
    .login-page .navbar-brand { font-size: 1rem; }
    .login-shell,
    .login-main { min-height: calc(100vh - 62px); }
    .login-main { padding: 24px 14px; }
    .login-card { padding: 28px 22px; border-radius: 14px; }
    .login-system-icon { width: 58px; height: 58px; }
    .login-heading { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit,
    .field-control input { transition: none; }
}
