:root {
    --auth-navy: #10294b;
    --auth-navy-deep: #081a33;
    --auth-blue: #2f7df4;
    --auth-cyan: #22b8f0;
    --auth-ink: #12233f;
    --auth-muted: #6e7e97;
    --auth-line: #dbe5f1;
}

.login-page {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 52px);
    background: #edf3fa;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.login-page::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 8% 12%, rgba(60, 150, 255, .16), transparent 30%), radial-gradient(circle at 92% 86%, rgba(53, 204, 235, .12), transparent 28%);
    content: "";
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.1fr);
    width: min(980px, 100%);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(30, 67, 113, .18), 0 4px 12px rgba(30, 67, 113, .06);
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 5vw, 52px);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(150deg, #163d6a 0%, var(--auth-navy) 52%, var(--auth-navy-deep) 100%);
}

.login-hero::after,
.login-hero::before {
    position: absolute;
    border: 1px solid rgba(125, 211, 252, .15);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.login-hero::before { width: 340px; height: 340px; right: -170px; bottom: -155px; }
.login-hero::after { width: 210px; height: 210px; right: -80px; bottom: -48px; }

.login-hero-brand,
.login-card-brand { display: flex; align-items: center; gap: 12px; }
.login-hero-brand { position: relative; z-index: 1; }
.login-hero-mark,
.brand-mark { display: inline-grid; place-items: center; border-radius: 11px; color: #fff; font-weight: 850; letter-spacing: -.04em; }
.login-hero-mark { width: 43px; height: 43px; background: linear-gradient(135deg, var(--auth-blue), var(--auth-cyan)); box-shadow: 0 8px 22px rgba(27, 144, 237, .32); }
.login-hero-brand strong, .login-hero-brand small, .login-card-brand strong, .login-card-brand small { display: block; }
.login-hero-brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.login-hero-brand small { margin-top: 2px; color: #a9c4e1; font-size: .75rem; }
.login-hero-copy { position: relative; z-index: 1; max-width: 340px; }
.login-eyebrow { display: block; color: var(--auth-blue); font-size: .69rem; font-weight: 800; letter-spacing: .15em; }
.login-hero .login-eyebrow { color: #76d7fa; }
.login-hero h2 { margin: 13px 0 15px; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.12; letter-spacing: -.045em; }
.login-hero p { margin: 0; color: #b7cbe3; font-size: .92rem; line-height: 1.75; }
.login-hero-points { position: relative; z-index: 1; display: grid; gap: 11px; color: #c9daed; font-size: .8rem; }
.login-hero-points span { display: flex; align-items: center; gap: 9px; }
.login-hero-points i { color: #65d4f6; font-size: 1rem; }

.login-card { align-self: center; width: 100%; padding: clamp(34px, 6vw, 70px); background: #fff; }
.login-card-brand { margin-bottom: 34px; }
.login-card-brand .brand-mark { width: 42px; height: 42px; background: linear-gradient(135deg, var(--auth-blue), var(--auth-cyan)); font-size: .9rem; box-shadow: 0 8px 18px rgba(47, 125, 244, .2); }
.login-card-brand strong { color: var(--auth-ink); font-size: .94rem; }
.login-card-brand small { margin-top: 2px; color: var(--auth-muted); font-size: .75rem; }
.login-card-heading h1 { margin: 8px 0 8px; color: var(--auth-ink); font-size: clamp(1.8rem, 3vw, 2.15rem); font-weight: 780; letter-spacing: -.045em; }
.login-card-heading p { margin: 0; color: var(--auth-muted); font-size: .88rem; }
.login-card form { margin-top: 30px !important; }
.login-card .form-label { margin-bottom: 7px; color: #314563; font-size: .78rem; font-weight: 700; }
.login-card .form-control { min-height: 49px; border: 1px solid var(--auth-line); border-radius: 10px; color: var(--auth-ink); background: #fbfdff; font-size: .92rem; }
.login-card .form-control:focus { border-color: #70a8fa; background: #fff; box-shadow: 0 0 0 4px rgba(47, 125, 244, .12); }
.login-card .btn-primary { min-height: 50px; border: 0; border-radius: 10px; background: linear-gradient(120deg, #286fe3, #318cf4); box-shadow: 0 9px 18px rgba(47, 125, 244, .22); font-size: .9rem; font-weight: 750; }
.login-card .btn-primary:hover { background: linear-gradient(120deg, #205fc9, #247ddf); transform: translateY(-1px); }
.login-card .btn-link { color: #356bbd; font-size: .78rem; text-decoration: none; }
.login-card .btn-link:hover { color: #1557b2; text-decoration: underline; }
.login-card .alert { border: 0; border-radius: 10px; font-size: .8rem; }
.login-card .text-danger { font-size: .76rem; }
.login-footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #edf1f6; color: var(--auth-muted); font-size: .76rem; }
.login-footer-links a { color: #2e6dcc; font-weight: 700; text-decoration: none; }
.login-footer-links a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .login-page { padding: 0; place-items: stretch; }
    .login-shell { grid-template-columns: 1fr; min-height: 100vh; border: 0; border-radius: 0; }
    .login-hero { min-height: 235px; padding: 27px 24px 30px; }
    .login-hero-copy { max-width: 560px; margin-top: 32px; }
    .login-hero h2 { margin: 8px 0; font-size: 1.65rem; }
    .login-hero p { font-size: .82rem; line-height: 1.55; }
    .login-hero-points { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 22px; font-size: .72rem; }
    .login-card { align-self: start; padding: 32px 24px 40px; }
    .login-card-brand { margin-bottom: 30px; }
}

@media (max-width: 380px) {
    .login-hero-points { display: none; }
    .login-hero { min-height: 205px; }
}
