:root {
    --login-navy: #102b4c;
    --login-blue: #1469c8;
    --login-blue-2: #227fd9;
    --login-cyan: #12aeca;
    --login-teal: #12aa9c;
    --login-text: #18324f;
    --login-muted: #6f8297;
    --login-line: #dce7ef;
    --login-bg: #f5f9fd;
    --login-card: rgba(255,255,255,.94);
    --login-shadow: 0 26px 70px rgba(35,76,115,.13);
}

* { box-sizing: border-box; }

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

body.stoma-login-page {
    margin: 0;
    min-width: 320px;
    color: var(--login-text);
    background:
        radial-gradient(circle at 86% 18%, rgba(33,128,217,.11), transparent 32%),
        radial-gradient(circle at 10% 85%, rgba(18,174,202,.10), transparent 30%),
        linear-gradient(135deg, #f8fbfe 0%, #f3f8fc 48%, #eef5fb 100%);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.login-bg-orb {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
}

.login-bg-orb-one {
    width: 520px;
    height: 520px;
    top: -260px;
    right: -160px;
    background: radial-gradient(circle, rgba(33,128,217,.11), rgba(33,128,217,0) 70%);
}

.login-bg-orb-two {
    width: 520px;
    height: 520px;
    bottom: -330px;
    left: 28%;
    background: radial-gradient(circle, rgba(18,174,202,.10), rgba(18,174,202,0) 70%);
}

.login-dots {
    position: fixed;
    z-index: 0;
    top: 22px;
    left: 20px;
    width: 150px;
    height: 110px;
    opacity: .45;
    pointer-events: none;
    background-image: radial-gradient(circle, #77c6e6 1.5px, transparent 1.7px);
    background-size: 18px 18px;
    mask-image: linear-gradient(135deg, #000, transparent 75%);
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(470px, .87fr);
}

.login-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 4vw, 68px) clamp(34px, 5.3vw, 92px) 38px;
    overflow: hidden;
}

.login-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -5%;
    right: -5%;
    width: 19%;
    height: 112%;
    background: rgba(255,255,255,.72);
    transform: skewX(-6deg);
    box-shadow: 20px 0 60px rgba(66,114,154,.04);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 17px;
}

.login-brand-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    color: var(--login-cyan);
    background: linear-gradient(145deg, #f9fdff, #ebf8fb);
    border: 1px solid #d4eef3;
    border-radius: 19px;
    box-shadow: 0 12px 28px rgba(31,129,168,.10);
}

.login-brand-mark svg { width: 42px; height: 42px; }

.login-brand-name {
    color: var(--login-navy);
    font-size: clamp(34px, 3.4vw, 52px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: .07em;
    background: linear-gradient(90deg, #105da8, #11aaa5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-brand-subtitle {
    margin-top: 8px;
    color: #385472;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
}

.login-hero-copy {
    max-width: 720px;
    margin-top: clamp(36px, 5vh, 62px);
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #0e92a8;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .16em;
}

.login-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--login-cyan), var(--login-blue));
}

.login-hero-copy h1 {
    max-width: 720px;
    margin: 15px 0 0;
    color: #153355;
    font-size: clamp(27px, 2.8vw, 43px);
    line-height: 1.13;
    letter-spacing: -.035em;
}

.login-hero-copy p {
    max-width: 680px;
    margin: 17px 0 0;
    color: #63788f;
    font-size: clamp(13px, 1.05vw, 15.5px);
    line-height: 1.72;
}

.login-hero-visual {
    position: relative;
    width: min(100%, 825px);
    margin-top: clamp(23px, 3.5vh, 38px);
    border: 1px solid rgba(171,210,229,.72);
    border-radius: 28px;
    overflow: hidden;
    background: #edf7fd;
    box-shadow:
        0 30px 70px rgba(66,117,157,.11),
        inset 0 0 0 1px rgba(255,255,255,.68);
}

.login-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(223,244,252,.13));
}

.login-hero-visual img {
    width: 100%;
    aspect-ratio: 830 / 380;
    display: block;
    object-fit: cover;
}

.login-visual-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    color: #28607c;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(200,226,239,.86);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(45,105,141,.10);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 850;
}

.login-visual-chip span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #18b5c3;
    box-shadow: 0 0 0 4px rgba(24,181,195,.12);
}

.login-visual-chip-one { left: 18px; bottom: 17px; }
.login-visual-chip-two { right: 18px; top: 17px; }

.login-audiences {
    width: min(100%, 850px);
    margin-top: auto;
    padding-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.login-audience {
    min-width: 0;
    padding: 0 19px;
    text-align: center;
    border-right: 1px solid #dfe8ef;
}
.login-audience:first-child { padding-left: 0; }
.login-audience:last-child { padding-right: 0; border-right: 0; }

.login-audience-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 11px;
    display: grid;
    place-items: center;
    color: #187ec0;
    background: linear-gradient(145deg, #ecf8fc, #eef4fb);
    border: 1px solid #d9ebf3;
    border-radius: 15px;
}

.login-audience-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-audience strong,
.login-audience span { display: block; }
.login-audience strong { color: #244360; font-size: 11.5px; }
.login-audience span { margin-top: 6px; color: #7a8c9d; font-size: 9.4px; line-height: 1.45; }

.login-auth-zone {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 40px clamp(28px, 4vw, 70px);
}

.login-auth-card {
    width: min(100%, 590px);
    padding: clamp(32px, 4vw, 52px);
    border: 1px solid rgba(220,231,239,.94);
    border-radius: 30px;
    background: var(--login-card);
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(18px);
}

.login-security-medallion {
    width: 76px;
    height: 76px;
    margin: -5px auto 25px;
    display: grid;
    place-items: center;
    color: #0a9aaf;
    border: 8px solid #edf7f9;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px #e0f0f3;
}

.login-security-medallion svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-card-heading { text-align: center; }
.login-mobile-brand { display: none; }
.login-card-heading h2 {
    margin: 0;
    color: #153253;
    font-size: clamp(25px, 2.3vw, 34px);
    letter-spacing: -.025em;
}
.login-card-heading p {
    margin: 9px 0 0;
    color: #73859a;
    font-size: 13.5px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 13px 14px;
    color: #a43f4e;
    border: 1px solid #ffd4dc;
    border-radius: 12px;
    background: #fff4f6;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}
.login-alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-form { margin-top: 30px; }
.login-field { display: block; margin-top: 20px; }
.login-field:first-of-type { margin-top: 0; }
.login-field-label {
    display: block;
    margin-bottom: 8px;
    color: #425d79;
    font-size: 12px;
    font-weight: 800;
}

.login-input-wrap {
    position: relative;
    display: block;
}

.login-input-wrap input {
    width: 100%;
    height: 58px;
    padding: 0 52px;
    color: #213e5d;
    border: 1px solid #d5e1ea;
    border-radius: 13px;
    background: #fff;
    outline: none;
    font-size: 13.5px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.login-input-wrap input::placeholder { color: #9aa9b7; }
.login-input-wrap input:focus {
    border-color: #75bfdf;
    box-shadow: 0 0 0 4px rgba(28,150,202,.09);
}

.login-input-icon {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;
    width: 21px;
    height: 21px;
    color: #667f98;
    transform: translateY(-50%);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.login-password-toggle {
    position: absolute;
    z-index: 3;
    right: 9px;
    top: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: #59728b;
    background: transparent;
    cursor: pointer;
}
.login-password-toggle:hover { background: #f2f7fa; color: #1a779d; }
.login-password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-password-toggle .eye-closed { display: none; }
.login-password-toggle.is-visible .eye-open { display: none; }
.login-password-toggle.is-visible .eye-closed { display: block; }

.login-form-meta {
    margin-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #506a83;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}
.login-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.login-checkbox {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid #b8c9d6;
    border-radius: 5px;
    background: #fff;
    transition: .15s ease;
}
.login-checkbox svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}
.login-remember input:checked + .login-checkbox {
    border-color: #10abc0;
    background: linear-gradient(135deg, #13b8ca, #149ed1);
}
.login-remember input:checked + .login-checkbox svg { opacity: 1; }
.login-remember input:focus-visible + .login-checkbox { box-shadow: 0 0 0 4px rgba(18,174,202,.12); }

.login-forgot {
    padding: 5px 0;
    border: 0;
    color: #0ba2c0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}
.login-forgot:hover { color: #087c9e; text-decoration: underline; }

.login-submit {
    width: 100%;
    height: 58px;
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(100deg, #10b1c7, #10a8a8 54%, #139cb5 100%);
    box-shadow: 0 14px 28px rgba(14,163,181,.23);
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 34px rgba(14,163,181,.29);
    filter: saturate(1.04);
}
.login-submit:active { transform: translateY(0); }
.login-submit svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-divider {
    margin: 28px 0 21px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.login-divider span { height: 1px; background: #e3ebf0; }
.login-divider svg {
    width: 19px;
    height: 19px;
    color: #6d8aa5;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-security-note {
    display: flex;
    align-items: center;
    gap: 14px;
}
.login-security-note-icon {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: grid;
    place-items: center;
    color: #10a7b5;
    border-radius: 50%;
    background: #edf9fa;
}
.login-security-note-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-security-note strong { color: #294862; font-size: 12.5px; }
.login-security-note p { margin: 4px 0 0; color: #7c8da0; font-size: 10.5px; line-height: 1.48; }

.login-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #61788f;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
}
.login-footer-note svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-modal[hidden] { display: none !important; }
.login-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}
.login-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(12,35,59,.35);
    backdrop-filter: blur(5px);
    cursor: default;
}
.login-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 450px);
    padding: 34px;
    border: 1px solid #dae7ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(17,49,79,.23);
    text-align: center;
}
.login-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    color: #6f8192;
    background: #f3f7fa;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.login-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    color: #1298b3;
    border-radius: 50%;
    background: #edf9fb;
}
.login-modal-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-modal-card h3 { margin: 0; color: #1c3b59; font-size: 20px; }
.login-modal-card p { margin: 13px 0 0; color: #718398; font-size: 12px; line-height: 1.65; }
.login-modal-ok {
    min-width: 140px;
    height: 44px;
    margin-top: 22px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(100deg, #10b1c7, #10a8a8);
    cursor: pointer;
    font-weight: 800;
}
body.login-modal-open { overflow: hidden; }

@media (max-width: 1230px) {
    .login-shell { grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr); }
    .login-hero { padding-left: 42px; padding-right: 52px; }
    .login-brand-subtitle { max-width: 390px; }
    .login-audience { padding: 0 10px; }
    .login-audience span { display: none; }
}

@media (max-width: 980px) {
    .login-shell { display: block; min-height: 100vh; }
    .login-hero { min-height: auto; padding: 34px 34px 42px; }
    .login-hero::after { display: none; }
    .login-hero-copy { margin-top: 32px; }
    .login-hero-visual { max-width: 760px; }
    .login-audiences { margin-top: 28px; }
    .login-auth-zone { min-height: auto; padding: 20px 28px 52px; }
    .login-auth-card { max-width: 650px; }
}

@media (max-width: 680px) {
    .login-dots { display: none; }
    .login-hero { padding: 24px 20px 28px; }
    .login-brand-mark { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; }
    .login-brand-mark svg { width: 34px; height: 34px; }
    .login-brand-name { font-size: 34px; }
    .login-brand-subtitle { font-size: 11px; }
    .login-hero-copy h1 { font-size: 27px; }
    .login-hero-copy p { font-size: 12.5px; }
    .login-audiences { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .login-audience { padding: 12px !important; border: 1px solid #e0e9ef !important; border-radius: 14px; background: rgba(255,255,255,.58); }
    .login-audience span { display: block; }
    .login-auth-zone { padding: 4px 14px 30px; }
    .login-auth-card { padding: 28px 20px; border-radius: 23px; }
    .login-security-medallion { width: 64px; height: 64px; border-width: 7px; margin-bottom: 20px; }
    .login-input-wrap input { height: 55px; }
    .login-form-meta { align-items: flex-start; }
}

@media (max-width: 470px) {
    .login-hero-copy,
    .login-hero-visual,
    .login-audiences { display: none; }
    .login-hero {
        padding: 22px 18px 8px;
        background: transparent;
    }
    .login-brand { justify-content: center; }
    .login-brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
    .login-brand-name { font-size: 30px; }
    .login-brand-subtitle { display: none; }
    .login-auth-zone { padding-top: 8px; }
    .login-auth-card { box-shadow: 0 20px 55px rgba(35,76,115,.12); }
    .login-security-medallion { display: none; }
    .login-card-heading h2 { font-size: 24px; }
    .login-form { margin-top: 24px; }
    .login-form-meta { flex-direction: column; gap: 9px; }
    .login-forgot { margin-left: 28px; }
    .login-security-note { align-items: flex-start; }
    .login-modal-card { padding: 30px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
