:root {
  color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; --ink: #17211d; --muted: #68746e; --line: #dce4df; --canvas: #f3f6f4;
  --surface: #fff; --green: #147a54; --green-dark: #0b563a; --green-soft: #e5f3ed; --error: #a94129;
}
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); }
button, input { font: inherit; } a { color: inherit; text-decoration: none; }
.login-layout { display: grid; min-height: 100dvh; grid-template-columns: minmax(420px, 45%) 1fr; }
.institutional-panel { position: relative; min-height: 100%; overflow: hidden; background: var(--ink); color: white; isolation: isolate; }
.institutional-panel::after { position: absolute; z-index: -1; right: -18%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgb(20 122 84 / 35%); filter: blur(80px); content: ""; }
.institutional-content { position: relative; z-index: 2; display: flex; width: 100%; min-height: 100%; flex-direction: column; padding: clamp(34px, 5vw, 72px); }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: 11px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: var(--ink); color: white; }
.wordmark-on-dark .brand-mark { background: white; color: var(--ink); }
.positioning { max-width: 570px; margin-block: auto; padding-block: 70px; }
.eyebrow { margin: 0 0 13px; color: #4bbb86; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.positioning h1 { max-width: 520px; margin: 0; font-size: clamp(42px, 5vw, 68px); letter-spacing: -.055em; line-height: .99; text-wrap: balance; }
.positioning > p:last-child { max-width: 480px; margin: 26px 0 0; color: rgb(255 255 255 / 68%); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.product-note { display: flex; align-items: center; gap: 9px; margin: 0; color: rgb(255 255 255 / 55%); font-size: 12px; font-weight: 650; }
.product-note span { width: 7px; height: 7px; border-radius: 50%; background: #4bbb86; box-shadow: 0 0 0 5px rgb(75 187 134 / 12%); }
.visual-grid { position: absolute; z-index: -2; inset: 0; opacity: .09; background-image: linear-gradient(rgb(255 255 255 / 40%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 40%) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom right, transparent 5%, black 60%, transparent); }
.visual-orbit { position: absolute; z-index: -1; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; }
.visual-orbit-one { right: -140px; bottom: 15%; width: 390px; height: 390px; }
.visual-orbit-two { right: -64px; bottom: 23%; width: 235px; height: 235px; }
.authentication-panel { display: grid; min-width: 0; place-items: center; padding: 54px clamp(30px, 7vw, 110px); background: var(--canvas); }
.login-card { width: min(100%, 420px); } .mobile-brand { display: none; }
.login-heading { margin-bottom: 34px; }
.login-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 42px); letter-spacing: -.045em; line-height: 1.08; }
.login-heading > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
form { display: grid; gap: 19px; } .field-group { display: grid; gap: 8px; }
label { color: #35433c; font-size: 13px; font-weight: 750; }
input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #cbd5d0; border-radius: 9px; outline: none; background: var(--surface); color: var(--ink); transition: border-color 140ms ease, box-shadow 140ms ease; }
input::placeholder { color: #9aa49f; } input:hover:not(:disabled) { border-color: #a8b8b0; }
input:focus-visible { border-color: var(--green); box-shadow: 0 0 0 4px rgb(20 122 84 / 13%); }
input[aria-invalid="true"] { border-color: var(--error); }
input:disabled { cursor: wait; background: #eef2ef; color: var(--muted); }
.password-control { position: relative; } .password-control input { padding-right: 50px; }
.password-toggle { position: absolute; top: 6px; right: 6px; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #5f6d66; cursor: pointer; }
.password-toggle:hover { background: var(--green-soft); color: var(--green-dark); }
.password-toggle:focus-visible { outline: 3px solid rgb(20 122 84 / 22%); outline-offset: 1px; }
.password-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.eye-closed, .password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.field-error { min-height: 17px; margin: -1px 0 0; color: var(--error); font-size: 12px; line-height: 1.4; }
.form-error { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid #efd1c8; border-radius: 8px; background: #fff3ef; color: #87351f; font-size: 13px; line-height: 1.45; animation: error-in 160ms ease-out; }
.form-error[hidden] { display: none; }
.form-error span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #f3d5cc; font-weight: 850; }
.form-error p { margin: 0; }
.submit-button { display: grid; width: 100%; min-height: 52px; place-items: center; margin-top: 3px; padding: 0 20px; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: white; cursor: pointer; font-weight: 800; box-shadow: 0 8px 22px rgb(20 122 84 / 18%); transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
.submit-button:hover:not(:disabled) { border-color: var(--green-dark); background: var(--green-dark); box-shadow: 0 10px 25px rgb(11 86 58 / 23%); transform: translateY(-1px); }
.submit-button:focus-visible { outline: 3px solid rgb(20 122 84 / 25%); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .74; box-shadow: none; }
.button-loading { display: none; align-items: center; gap: 9px; }
.submit-button.is-loading .button-label { display: none; }
.submit-button.is-loading .button-loading { display: inline-flex; }
.spinner { width: 17px; height: 17px; border: 2px solid rgb(255 255 255 / 35%); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.authorized-only { margin: 28px 0 0; color: #87918c; font-size: 12px; text-align: center; }
.authorized-only span { margin-right: 5px; color: var(--green); font-size: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes error-in { from { opacity: 0; transform: translateY(-3px); } }
@media (max-width: 1000px) {
  .login-layout { grid-template-columns: minmax(330px, 40%) 1fr; }
  .institutional-content { padding: 38px; } .positioning h1 { font-size: clamp(36px, 5vw, 50px); }
  .authentication-panel { padding-inline: 50px; }
}
@media (max-width: 760px) {
  .login-layout { display: block; } .institutional-panel { display: none; }
  .authentication-panel { display: block; min-height: 100dvh; padding: 30px 24px 42px; }
  .mobile-brand { display: block; margin-bottom: clamp(62px, 14vh, 105px); }
  .login-card { margin-inline: auto; } .login-heading { margin-bottom: 30px; }
}
@media (max-width: 430px) {
  .authentication-panel { padding-inline: 20px; } .mobile-brand { margin-bottom: 60px; }
  .login-heading h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
