:root {
    color-scheme: light;
    --login-ink: #193b30;
    --login-muted: #77867d;
    --login-green: #17684e;
    --login-green-deep: #103f33;
    --login-line: #e3ebe5;
    --login-bg: #f5f8f5;
}

* { box-sizing: border-box; }

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

body.simpresma-login-body {
    margin: 0;
    color: var(--login-ink);
    background: var(--login-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr);
}

.login-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(28px, 4.6vw, 68px);
    color: #fff;
    background:
        radial-gradient(ellipse at 8% 10%, rgba(132, 194, 130, .17), transparent 40%),
        linear-gradient(145deg, #103d32 0%, #145541 50%, #1a6249 100%);
}

.brand-panel-content { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; width: min(100%, 650px); margin: 0 auto; }
.brand-orbit { position: absolute; z-index: -1; border: 1px solid rgba(226, 245, 232, .11); border-radius: 50%; pointer-events: none; }
.brand-orbit-one { width: 580px; height: 580px; top: 20%; right: -360px; box-shadow: 0 0 0 58px rgba(226,245,232,.025), 0 0 0 118px rgba(226,245,232,.02); }
.brand-orbit-two { width: 310px; height: 310px; bottom: -210px; left: -175px; box-shadow: 0 0 0 38px rgba(226,245,232,.026); }

.institution-lockup { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 650; letter-spacing: .015em; }
.institution-seal { width: 38px; height: 48px; padding: 3px; object-fit: contain; background: #fff; border-radius: 8px; }
.brand-message { margin: auto 0; padding: 45px 0; }
.brand-logo-card { display: grid; width: 190px; height: 190px; place-items: center; overflow: hidden; margin-bottom: 28px; padding: 7px; background: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 25px; box-shadow: 0 20px 45px rgba(4,28,22,.22); transform: rotate(-2deg); }
.simpresma-logo { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.brand-kicker { margin: 0 0 10px; color: #a8d4b9; font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.brand-message h1 { max-width: 590px; margin: 0; color: #fff; font-size: clamp(37px, 4.9vw, 61px); font-weight: 760; letter-spacing: -.06em; line-height: 1.02; }
.brand-description { max-width: 455px; margin: 18px 0 0; color: #d1e5d9; font-size: 14px; line-height: 1.75; }
.brand-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 25px; padding: 8px 12px; color: #ddf1e4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 99px; font-size: 10px; font-weight: 650; }
.brand-pill-dot { width: 7px; height: 7px; background: #8bcb72; border-radius: 50%; box-shadow: 0 0 0 4px rgba(139,203,114,.14); }
.brand-bottomline { display: flex; align-items: center; gap: 9px; color: #bad7c6; font-size: 10px; letter-spacing: .035em; }
.brand-bottomline span:first-child { color: #fff; font-weight: 800; letter-spacing: .12em; }
.brand-bottom-separator { color: rgba(255,255,255,.4); }

.login-panel { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 38px clamp(24px, 5vw, 76px); background: linear-gradient(180deg, #f8faf7 0%, #f3f6f2 100%); }
.login-content { width: min(100%, 410px); }
.login-heading { margin-bottom: 28px; }
.login-eyebrow { margin-bottom: 9px; color: var(--login-green); font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.login-heading h2 { margin: 0; color: var(--login-ink); font-size: clamp(28px, 3vw, 36px); font-weight: 760; letter-spacing: -.05em; line-height: 1.12; }
.login-heading p { margin: 11px 0 0; color: var(--login-muted); font-size: 12px; }
.login-form { display: grid; gap: 17px; }
.field-group { display: grid; gap: 7px; }
.field-group label { color: #40584c; font-size: 11px; font-weight: 750; }
.login-input { width: 100%; height: 49px; padding: 0 14px; color: #213b30; background: #fff; border: 1px solid #dfe8e1; border-radius: 11px; outline: none; font: inherit; font-size: 12px; transition: border-color .16s ease, box-shadow .16s ease; }
.login-input::placeholder { color: #a3afa7; }
.login-input:focus { border-color: #4d9a75; box-shadow: 0 0 0 4px rgba(57,135,96,.11); }
.password-field { position: relative; }
.password-field .login-input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 9px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; color: #75877c; background: transparent; border: 0; border-radius: 8px; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { color: var(--login-green); background: #f1f6f2; }
.password-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.login-submit { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; padding: 0 16px; color: #fff; background: var(--login-green); border: 0; border-radius: 11px; box-shadow: 0 9px 20px rgba(23,104,78,.14); cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.login-submit:hover { background: #125940; box-shadow: 0 12px 24px rgba(23,104,78,.19); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.login-submit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-submit.is-loading span::after { display: inline-block; width: 14px; overflow: hidden; content: "…"; animation: loading-dots 1s steps(4,end) infinite; vertical-align: bottom; }
@keyframes loading-dots { from { width: 0; } to { width: 14px; } }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 25px 0 16px; color: #9aa79e; font-size: 10px; }
.login-divider::before, .login-divider::after { height: 1px; flex: 1; background: #e3eae4; content: ""; }
.nadi-button { display: flex; min-height: 59px; align-items: center; gap: 12px; padding: 10px 13px; color: var(--login-ink); background: #fff; border: 1px solid var(--login-line); border-radius: 12px; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.nadi-button:hover { border-color: #b7d2c0; box-shadow: 0 9px 22px rgba(22,62,46,.06); transform: translateY(-1px); }
.nadi-mark { display: grid; width: 34px; height: 34px; flex: 0 0 auto; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 7px; background: #eef6ed; border-radius: 10px; }
.nadi-mark span { background: #247b57; border-radius: 3px; }
.nadi-mark span:nth-child(2), .nadi-mark span:nth-child(3) { background: #78b64b; }
.nadi-copy { display: grid; gap: 1px; }
.nadi-copy strong { color: #234c39; font-size: 12px; letter-spacing: .08em; }
.nadi-copy small { color: #849188; font-size: 9px; }
.external-arrow { width: 17px; height: 17px; margin-left: auto; fill: none; stroke: #87958c; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.nadi-help { margin: 9px 0 0; color: #87958c; font-size: 10px; line-height: 1.6; }
.continue-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--login-green); font-size: 10px; font-weight: 750; text-decoration: none; }
.continue-link:hover { color: #0c4937; text-decoration: underline; }
.login-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin-top: 32px; padding-top: 17px; color: #9aa69e; border-top: 1px solid #e5ebe6; font-size: 9px; }
.login-footer a { color: inherit; text-decoration: none; }
.login-footer a:hover { color: var(--login-green); }
.login-footer a[aria-label] { font-size: 12px; line-height: 1; }
.login-footer .ptipd-link { color: #66786d; font-weight: 650; }

@media (max-width: 940px) {
    .login-shell { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
    .login-brand-panel { padding: 30px; }
    .brand-logo-card { width: 160px; height: 160px; }
    .brand-message h1 { font-size: clamp(34px, 5vw, 47px); }
}

@media (max-width: 720px) {
    .login-shell { display: block; }
    .login-brand-panel { min-height: auto; padding: 22px 22px 18px; }
    .institution-lockup { font-size: 10px; }
    .institution-seal { width: 31px; height: 39px; }
    .brand-message { margin: 21px 0 0; padding: 0; }
    .brand-logo-card { display: none; }
    .brand-kicker { margin-bottom: 7px; font-size: 8px; }
    .brand-message h1 { max-width: 440px; font-size: clamp(27px, 8vw, 38px); }
    .brand-description { max-width: 480px; margin-top: 9px; font-size: 11px; line-height: 1.55; }
    .brand-pill { margin-top: 12px; padding: 6px 9px; font-size: 9px; }
    .brand-bottomline { display: none; }
    .login-panel { min-height: auto; padding: 29px 22px 25px; }
    .login-content { width: min(100%, 440px); }
    .login-heading { margin-bottom: 22px; }
    .login-heading h2 { font-size: 29px; }
    .login-footer { margin-top: 25px; font-size: 8px; }
}

@media (max-width: 380px) {
    .login-panel { padding-right: 16px; padding-left: 16px; }
    .login-brand-panel { padding-right: 18px; padding-left: 18px; }
    .brand-message h1 { font-size: 27px; }
    .login-footer { gap: 3px; }
}

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