:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #142744;
  background: #f5f8fd;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

button, input { font: inherit; }

.page-shell { display: grid; grid-template-columns: minmax(390px, 47%) 1fr; min-height: 100vh; }

.intro-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 45px clamp(34px, 5vw, 82px) 39px;
  background: linear-gradient(145deg, #0b3777 0%, #0c4d9d 55%, #1166bb 100%);
  color: #fff;
}

.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; letter-spacing: -.04em; }

.intro-content { position: relative; z-index: 1; max-width: 510px; margin: 50px 0 70px; }
.eyebrow { display: inline-block; margin-bottom: 24px; color: #c0dbff; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.intro-content h1 { max-width: 520px; margin: 0 0 22px; font-size: clamp(40px, 4.1vw, 62px); line-height: 1.1; letter-spacing: -.055em; }
.intro-content p { max-width: 420px; margin: 0; color: #d8e8fc; font-size: 17px; line-height: 1.65; }
.role-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 37px; }
.role-list span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; background: rgba(255,255,255,.08); color: #eef6ff; font-size: 12px; font-weight: 600; }
.intro-footer { position: relative; z-index: 1; margin: 0; color: #c4defa; font-size: 13px; }
.panel-orbit { position: absolute; width: 600px; height: 600px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.orbit-one { right: -400px; bottom: -155px; }
.orbit-two { right: -300px; bottom: -245px; }

.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 32px 28px; background: #fff; }
.mobile-brand { display: none; color: #0d4e9e; }
.login-content { width: min(100%, 430px); margin: auto 0; padding: 56px 0; }
.heading-icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 27px; border: 1px solid #dceafe; border-radius: 14px; background: #edf5ff; color: #0d57a7; }
.heading-icon svg { width: 23px; height: 23px; }
.section-label { margin: 0 0 11px; color: #0d5bbb; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
h2 { margin: 0; color: #122745; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.045em; }
.login-description { margin: 12px 0 35px; color: #62718a; font-size: 15px; line-height: 1.55; }
.field { margin-bottom: 21px; }
.field label { display: block; margin-bottom: 9px; color: #263b59; font-size: 14px; font-weight: 700; }
.field input { width: 100%; height: 51px; padding: 0 15px; border: 1px solid #cbd7e6; border-radius: 9px; outline: none; background: #fff; color: #142744; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #94a2b5; }
.field input:focus { border-color: #1767c6; box-shadow: 0 0 0 3px #d9eaff; }
.field input[aria-invalid="true"] { border-color: #b52c43; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #ffe2e7; }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle { position: absolute; top: 0; right: 4px; display: grid; width: 47px; height: 51px; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #5a6b84; cursor: pointer; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle:hover { color: #0d57a7; }
.password-toggle:focus-visible, .sign-in-button:focus-visible { outline: 3px solid #9bc8ff; outline-offset: 3px; }
.sign-in-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 30px; border: 0; border-radius: 9px; background: #0b58ad; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.sign-in-button:hover { background: #084a94; }
.sign-in-button:active { transform: translateY(1px); }
.sign-in-button span { font-size: 21px; line-height: 1; }
.signed-in-panel { padding: 22px; border: 1px solid #c7ddf7; border-radius: 10px; background: #f0f7ff; }
.signed-in-label { margin: 0 0 10px; color: #0d5bbb; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.signed-in-user { margin: 0; color: #122745; font-size: 21px; font-weight: 700; }
.signed-in-role { margin: 7px 0 20px; color: #62718a; font-size: 14px; }
.sign-out-button { padding: 9px 14px; border: 1px solid #b7cde9; border-radius: 7px; background: #fff; color: #0b58ad; font-weight: 700; cursor: pointer; }
.sign-out-button:focus-visible { outline: 3px solid #9bc8ff; outline-offset: 3px; }
.access-note { margin: 29px 0 0; color: #70809a; font-size: 13px; text-align: center; line-height: 1.5; }
.login-footer { width: min(100%, 430px); color: #8290a5; font-size: 12px; }


@media (max-width: 900px) {
  .page-shell { grid-template-columns: minmax(310px, 42%) 1fr; }
  .intro-panel { padding: 34px; }
  .intro-content h1 { font-size: clamp(34px, 4.5vw, 48px); }
  .intro-content p { font-size: 15px; }
}

@media (max-width: 700px) {
  .page-shell { display: block; }
  .intro-panel { display: none; }
  .login-panel { min-height: 100vh; padding: 27px 25px 22px; align-items: stretch; }
  .mobile-brand { display: inline-flex; align-self: flex-start; font-size: 19px; }
  .login-content { align-self: center; padding: 45px 0; }
  .login-footer { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
#form-message:not(:empty), #sign-out-message:not(:empty) { margin-top: 16px; }

.login-recovery { display:flex; justify-content:flex-end; margin-top:-7px; font-size:13px; }
.login-recovery a { color:#0b58ad; text-decoration:none; font-weight:600; padding:4px 0; }
.login-recovery a:hover { text-decoration:underline; }
.company-entry { margin-top:28px; padding:20px 0; border-top:1px solid #e0e8f3; border-bottom:1px solid #e0e8f3; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.company-entry-label { display:block; color:#75849b; font-size:10px; font-weight:700; letter-spacing:.12em; margin-bottom:5px; }
.company-entry strong { display:block; font-size:13px; color:#263b59; font-weight:600; }
.company-entry a { flex-shrink:0; color:#0b58ad; font-size:13px; font-weight:700; text-decoration:none; padding:10px 12px; border:1px solid #cbdcf0; border-radius:8px; background:#f7faff; }
.company-entry a:hover { background:#edf4ff; border-color:#0b58ad; }
@media(max-width:380px){.company-entry{align-items:flex-start;flex-direction:column}.company-entry a{width:100%;text-align:center}}
