:root {
    --bg: #f6f6f6;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text: #18324a;
    --muted: #627588;
    --line: rgba(23, 49, 31, 0.12);
    --primary: #0072bb;
    --success: #5ebb46;
    --warning: #c6a400;
}

* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    min-width: 0;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: #f6f6f6;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
button {
    font: inherit;
}

.guest-flash {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: min(560px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.guest-flash.flash-success {
    color: #13664d;
    background: rgba(241, 252, 246, 0.97);
    border-color: rgba(19, 102, 77, 0.14);
}

.guest-flash.flash-error {
    color: #8e2231;
    background: rgba(255, 245, 247, 0.97);
    border-color: rgba(142, 34, 49, 0.14);
}

.guest-flash.guest-flash-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
}

.login-shell {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(0, 114, 187, 0.08), transparent 26%),
        radial-gradient(circle at bottom left, rgba(94, 187, 70, 0.05), transparent 22%),
        linear-gradient(90deg, #f6fbff 0%, #fbfdff 56%, #ffffff 56%, #ffffff 100%);
}

.login-shell-inner {
    width: min(100%, 1680px);
    min-height: 100vh;
    height: 100vh;
    display: grid;
}

.login-card {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background: transparent;
}

.login-card-split {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(430px, 0.82fr);
    align-items: stretch;
}

.login-brand-panel,
.login-form-panel {
    min-height: 100vh;
    height: 100vh;
    padding: 42px 56px;
}

.login-brand-panel {
    background:
        radial-gradient(circle at top left, rgba(0, 114, 187, 0.09), transparent 24%),
        radial-gradient(circle at center right, rgba(94, 187, 70, 0.05), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(247, 251, 255, 0.92) 100%);
    border-right: 1px solid rgba(0, 114, 187, 0.05);
    display: grid;
    align-content: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 240px;
    height: 220px;
    background-image: radial-gradient(rgba(0, 114, 187, 0.14) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.5;
    pointer-events: none;
}

.login-brand-head,
.login-brand-top,
.login-brand-copy,
.login-feature-grid,
.login-why-panel {
    position: relative;
    z-index: 1;
}

.login-brand-head {
    display: grid;
    gap: 4px;
}

.login-brand-copy {
    display: grid;
    gap: 14px;
    max-width: 740px;
}

.login-brand-panel .eyebrow {
    color: #0a6bb8;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.login-brand-panel h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.04;
    width: 100%;
    color: #0f2f5f;
    text-transform: uppercase;
}

.hero-copy.login-hero-copy {
    margin: 0;
    color: #5d7c94;
    font-weight: 500;
    font-family: "Georgia", "Times New Roman", serif;
    letter-spacing: 0.01em;
    line-height: 1.45;
    font-size: 1.08rem;
    font-style: italic;
}

.login-brand-divider {
    display: inline-block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0072bb 0%, #2a8ae8 100%);
}

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.login-feature-card {
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: center;
    text-align: center;
    min-height: 154px;
    padding: 18px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 254, 255, 0.82));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.login-feature-card::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(0, 114, 187, 0.05);
    pointer-events: none;
}

.login-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.04);
    color: #0072bb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.login-feature-icon svg {
    width: 21px;
    height: 21px;
}

.login-feature-card strong {
    color: #28445d;
    font-size: 0.94rem;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.login-feature-value {
    font-size: 1.82rem;
    line-height: 1;
    font-weight: 800;
    color: #0f2f5f;
    position: relative;
    z-index: 1;
}

.login-feature-note {
    color: #7a8da1;
    line-height: 1.45;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.login-feature-card.tone-primary {
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.88), rgba(237, 247, 255, 0.82));
    border-color: rgba(0, 114, 187, 0.1);
}

.login-feature-card.tone-primary::after {
    background: rgba(0, 114, 187, 0.11);
}

.login-feature-card.tone-primary .login-feature-value {
    color: #026096;
}

.login-feature-card.tone-success {
    background: linear-gradient(180deg, rgba(248, 253, 249, 0.88), rgba(239, 249, 242, 0.82));
    border-color: rgba(40, 145, 90, 0.1);
}

.login-feature-card.tone-success .login-feature-icon {
    color: #28915a;
}

.login-feature-card.tone-success::after {
    background: rgba(40, 145, 90, 0.12);
}

.login-feature-card.tone-success .login-feature-value {
    color: #228055;
}

.login-feature-card.tone-warning {
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 245, 228, 0.84));
    border-color: rgba(208, 122, 20, 0.11);
}

.login-feature-card.tone-warning .login-feature-icon {
    color: #d07a14;
}

.login-feature-card.tone-warning::after {
    background: rgba(208, 122, 20, 0.12);
}

.login-feature-card.tone-warning .login-feature-value {
    color: #b86600;
}

.login-feature-card.tone-neutral {
    background: linear-gradient(180deg, rgba(250, 248, 255, 0.88), rgba(243, 240, 255, 0.82));
    border-color: rgba(95, 103, 214, 0.1);
}

.login-feature-card.tone-neutral .login-feature-icon {
    color: #5f67d6;
}

.login-feature-card.tone-neutral::after {
    background: rgba(95, 103, 214, 0.1);
}

.login-feature-card.tone-neutral .login-feature-value {
    color: #505ac7;
}

.login-why-panel {
    display: grid;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(8px);
}

.login-why-panel h2 {
    margin: 0;
    color: #17324a;
    font-size: 1.18rem;
}

.login-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.login-why-item {
    display: grid;
    gap: 6px;
    padding-right: 16px;
    border-right: 1px solid rgba(15, 23, 42, 0.05);
}

.login-why-item:last-child {
    border-right: 0;
    padding-right: 0;
}

.login-why-item strong {
    color: #36536d;
    font-size: 0.95rem;
}

.login-why-value {
    font-size: 1.56rem;
    line-height: 1;
    font-weight: 800;
    color: #0f2f5f;
}

.login-why-item span {
    color: #73879a;
    line-height: 1.5;
    font-size: 0.86rem;
}

.login-form-panel {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.login-form-card {
    width: min(560px, 100%);
    display: grid;
    gap: 20px;
    padding: 38px 42px 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    justify-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.login-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: block;
}

.login-form-head {
    display: grid;
    gap: 8px;
    text-align: center;
}

.login-form-head h2 {
    margin: 0;
    font-size: 2.1rem;
    color: #17324a;
}

.login-form-head p {
    margin: 0;
    color: #7b8ea3;
    font-size: 0.98rem;
}

.login-form {
    display: grid;
    gap: 16px;
    width: 100%;
}

.login-form label {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    width: 100%;
}

.login-form label span {
    width: 100%;
    font-size: 0.96rem;
    font-weight: 600;
    color: #28445d;
}

.login-form input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    font-size: 1rem;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(252, 254, 255, 0.9);
    color: #17324a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form input:focus {
    border-color: rgba(0, 114, 187, 0.28);
    box-shadow: 0 0 0 4px rgba(0, 114, 187, 0.08);
    background: #ffffff;
}

.login-form button {
    width: 100%;
    margin-top: 2px;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #0f6fca 0%, #026096 100%);
    box-shadow: 0 10px 20px rgba(2, 96, 150, 0.16);
}

.login-form button:hover,
.login-form button:focus-visible {
    background: linear-gradient(135deg, #0b69bc 0%, #005a95 100%);
}

.login-help-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #6f849a;
    font-size: 0.88rem;
    text-align: center;
    width: 100%;
}

.login-footer {
    margin-top: 0;
    padding: 0;
    border-top: 0;
    text-align: center;
    width: 100%;
    max-width: 640px;
    color: #7a8da1;
    font-size: 0.88rem;
}

.login-footer a {
    color: #0072bb;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .login-card-split {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(0, 114, 187, 0.1);
        padding-bottom: 42px;
    }

    .login-feature-grid,
    .login-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-why-item:nth-child(2) {
        border-right: 0;
        padding-right: 0;
    }

    .login-footer {
        padding: 16px 24px 24px;
    }
}

@media (max-width: 960px) {
    .login-shell {
        padding: 0;
        background: linear-gradient(180deg, #edf6ff 0%, #ffffff 48%);
        overflow: auto;
    }

    .login-shell-inner,
    .login-card,
    .login-brand-panel,
    .login-form-panel {
        min-height: auto;
        height: auto;
    }

    .login-brand-panel,
    .login-form-panel {
        padding: 32px 20px;
    }

    .login-form-card {
        padding: 28px 22px 24px;
    }

    .login-feature-grid,
    .login-why-grid {
        grid-template-columns: 1fr;
    }

    .login-why-item {
        border-right: 0;
        padding-right: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .login-why-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .login-brand-panel h1 {
        font-size: 2rem;
    }

    .login-help-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
