:root {
    --ciama-navy: #05315c;
    --ciama-teal: #029795;
    --ciama-indigo: #454cb0;
    --ciama-night: #071a2b;
    --ciama-mist: #f5f8fa;
    --ciama-white: #fff;
    --ciama-ink: #102a43;
    --ciama-muted: #62758a;
    --ciama-border: #d8e2ea;
    --ciama-display: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
    --ciama-body: "Open Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { color: var(--ciama-ink); background: var(--ciama-mist); font-family: var(--ciama-body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(520px, .88fr);
    min-height: 100vh;
    min-height: 100svh;
}

.brand-stage {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: var(--ciama-white);
    background: radial-gradient(circle at 92% 18%, rgb(69 76 176 / 22%), transparent 30%), radial-gradient(circle at 8% 86%, rgb(2 151 149 / 18%), transparent 31%), var(--ciama-night);
    isolation: isolate;
}

.brand-stage::after {
    position: absolute;
    right: -1px;
    top: 0;
    width: 1px;
    height: 100%;
    content: "";
    background: linear-gradient(180deg, transparent, rgb(143 170 194 / 32%), transparent);
}

.brand-stage__grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .42;
    background-image: linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(135deg, black, transparent 82%);
}

.brand-stage__glow { position: absolute; z-index: -1; width: 430px; height: 430px; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.brand-stage__glow--teal { left: -180px; bottom: -150px; background: var(--ciama-teal); }
.brand-stage__glow--indigo { right: -160px; top: -130px; background: var(--ciama-indigo); }

.brand-stage__content {
    display: flex;
    flex-direction: column;
    width: min(720px, calc(100% - 112px));
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(38px, 5vh, 64px) 0 34px;
}

.brand-stage__main { width: 100%; margin: auto 0; padding: 24px 0 34px; }

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: clamp(38px, 5.4vh, 66px);
}

.brand-lockup__symbol { width: clamp(104px, 8vw, 138px); height: auto; }
.brand-lockup__name { display: flex; flex-direction: column; align-items: flex-start; }
.brand-lockup__name span { color: #fff; font-family: var(--ciama-display); font-size: clamp(40px, 4vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.brand-lockup__name small { max-width: 310px; margin-top: 10px; color: #b4c5d1; font-family: var(--ciama-display); font-size: clamp(8px, .65vw, 11px); font-weight: 700; letter-spacing: .115em; line-height: 1.5; text-transform: uppercase; }
.brand-stage__message { text-align: center; }

.brand-stage__eyebrow, .login-card__eyebrow {
    margin: 0;
    color: #55d3cf;
    font-family: var(--ciama-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.brand-stage__eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.brand-stage__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ciama-teal); box-shadow: 0 0 0 6px rgb(2 151 149 / 12%); }

.brand-stage h1 {
    max-width: 700px;
    margin: 19px auto 24px;
    color: var(--ciama-white);
    font-family: var(--ciama-display);
    font-size: clamp(43px, 4.35vw, 66px);
    font-weight: 750;
    letter-spacing: -.048em;
    line-height: .99;
}

.brand-stage h1 span { color: #92a9ff; }
.brand-stage__lead { max-width: 610px; margin: 0 auto; color: #adbdca; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.72; }

.flow-map { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(42px, 5.5vh, 66px); }
.flow-map__line { position: absolute; top: 20px; left: 13px; right: 13px; height: 1px; background: linear-gradient(90deg, var(--ciama-teal), rgb(123 144 169 / 35%) 48%, var(--ciama-indigo)); }
.flow-map__item { position: relative; display: flex; align-items: center; flex-direction: column; min-width: 0; text-align: center; }

.flow-map__index {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 50%;
    color: #dfe8ef;
    background: #0b2235;
    font-family: var(--ciama-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.flow-map__item strong { color: #f5f9fc; font-family: var(--ciama-display); font-size: 14px; letter-spacing: -.01em; }
.flow-map__item small { margin-top: 5px; color: #71879a; font-size: 12px; }

.brand-stage__copyright { margin: 0; color: #71879a; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.login-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 58px clamp(40px, 6vw, 112px);
    background: radial-gradient(circle at 95% 0%, rgb(69 76 176 / 5%), transparent 28%), var(--ciama-mist);
}

.login-panel__mobile-brand { display: none; }
.login-card { width: min(100%, 470px); }
.login-card__header { margin-bottom: 38px; text-align: center; }
.login-card__symbol { display: block; width: 104px; height: 82px; margin: 0 auto 22px; object-fit: contain; }
.login-card__eyebrow { color: var(--ciama-teal); }

.login-card h2 {
    margin: 10px 0;
    color: var(--ciama-night);
    font-family: var(--ciama-display);
    font-size: clamp(31px, 3vw, 42px);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.12;
}

.login-card__header > p:last-child { max-width: 390px; margin: 0 auto; color: var(--ciama-muted); font-size: 15px; line-height: 1.65; }

.login-alert { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 24px; padding: 14px 16px; border: 1px solid rgb(200 62 86 / 18%); border-radius: 12px; color: #9d2f43; background: #fff2f4; font-size: 13px; line-height: 1.5; }
.login-alert svg { flex: 0 0 auto; width: 19px; margin-top: 1px; }
.login-form { display: grid; gap: 22px; }
.login-field label { display: block; margin-bottom: 9px; color: #263f55; font-size: 13px; font-weight: 700; }
.login-field__control { position: relative; display: flex; align-items: center; }
.login-field__control > svg { position: absolute; left: 17px; width: 19px; color: #8293a3; pointer-events: none; }

.login-field input[type="email"], .login-field input[type="password"], .login-field input[type="text"] {
    width: 100%;
    min-height: 56px;
    padding: 0 52px 0 50px;
    border: 1px solid var(--ciama-border);
    border-radius: 12px;
    outline: 0;
    color: var(--ciama-night);
    background: var(--ciama-white);
    box-shadow: 0 4px 14px rgb(7 26 43 / 2%);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-field input::placeholder { color: #9aa8b5; }
.login-field input:hover { border-color: #b8c8d5; }
.login-field input:focus { border-color: var(--ciama-teal); box-shadow: 0 0 0 4px rgb(2 151 149 / 11%), 0 8px 24px rgb(7 26 43 / 5%); }

.password-toggle { position: absolute; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; color: #7a8d9e; background: transparent; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--ciama-navy); background: #eef3f6; outline: 0; }
.password-toggle svg { width: 20px; }
.password-toggle__hide, .password-toggle[aria-pressed="true"] .password-toggle__show { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle__hide { display: block; }

.login-form__options { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: -2px; }
.login-form__context { display: inline-flex; align-items: center; gap: 8px; color: #66798b; font-size: 12px; }
.login-form__context > span { width: 7px; height: 7px; border-radius: 50%; background: var(--ciama-teal); box-shadow: 0 0 0 4px rgb(2 151 149 / 9%); }
.login-form__secure { display: inline-flex; align-items: center; gap: 6px; color: #8494a3; font-size: 12px; }
.login-form__secure svg { width: 16px; }

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    margin-top: 4px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: var(--ciama-white);
    background: var(--ciama-navy);
    box-shadow: 0 14px 30px rgb(5 49 92 / 18%);
    font-family: var(--ciama-display);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.login-submit svg { width: 20px; transition: transform .2s ease; }
.login-submit:hover { background: #074276; box-shadow: 0 18px 35px rgb(5 49 92 / 24%); transform: translateY(-1px); }
.login-submit:hover svg { transform: translateX(3px); }
.login-submit:active { transform: translateY(0); }
.login-submit:focus-visible { outline: 3px solid rgb(69 76 176 / 28%); outline-offset: 3px; }

@media (max-width: 1120px) {
    .login-shell { grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); }
    .brand-stage__content { width: min(620px, calc(100% - 72px)); }
    .flow-map { gap: 12px; }
}

@media (max-width: 860px) {
    .login-shell { display: block; background: var(--ciama-mist); }
    .brand-stage { display: none; }
    .login-panel { display: block; min-height: 100vh; min-height: 100svh; padding: 0 28px 42px; background: var(--ciama-mist); }
    .login-panel__mobile-brand { display: flex; align-items: center; justify-content: center; width: calc(100% + 56px); height: 150px; margin: 0 -28px 38px; padding: 26px 28px; background: radial-gradient(circle at 90% 10%, rgb(69 76 176 / 28%), transparent 45%), var(--ciama-night); }
    .login-panel__mobile-brand img { width: 210px; }
    .login-card { width: min(100%, 500px); margin: 0 auto; }
    .login-card__symbol { display: none; }
}

@media (max-width: 520px) {
    .login-panel { padding-right: 20px; padding-left: 20px; }
    .login-panel__mobile-brand { width: calc(100% + 40px); height: 126px; margin-right: -20px; margin-bottom: 30px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
    .login-card__header { margin-bottom: 30px; }
    .login-card h2 { font-size: 31px; }
    .login-form__options { align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (max-height: 760px) and (min-width: 861px) {
    .brand-stage__content { padding-top: 34px; padding-bottom: 28px; }
    .brand-stage__main { padding-top: 8px; padding-bottom: 18px; }
    .brand-lockup { margin-bottom: 22px; }
    .brand-lockup__symbol { width: 82px; }
    .brand-lockup__name span { font-size: 38px; }
    .brand-lockup__name small { max-width: 260px; margin-top: 6px; font-size: 8px; }
    .brand-stage h1 { font-size: clamp(38px, 3.9vw, 54px); }
    .flow-map { margin-top: 28px; }
    .login-panel { padding-top: 18px; padding-bottom: 18px; }
    .login-card__symbol { width: 72px; height: 58px; margin-bottom: 10px; }
    .login-card__header { margin-bottom: 18px; }
    .login-card h2 { font-size: 34px; }
    .login-card__header > p:last-child { font-size: 14px; }
    .login-form { gap: 12px; }
    .login-field label { margin-bottom: 6px; }
    .login-field input[type="email"], .login-field input[type="password"], .login-field input[type="text"] { min-height: 50px; }
    .login-submit { min-height: 50px; }
}

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