@font-face {
  font-family: Figtree;
  src: url('./figtree-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url('./figtree-latin-600-normal.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url('./figtree-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Figtree;
  src: url('./figtree-latin-ext-600-normal.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
  unicode-range: U+0100-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Keep the original METEK split layout; decoration stays out of the form. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: #fafbf9;
  color: #172e29;
  font-family: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a:focus-visible, button:focus-visible { outline: 3px solid #398478; outline-offset: 4px; }
input:focus-visible { outline: none; border-color: #327f70; box-shadow: 0 0 0 3px #327f701a; }
.auth-layout { display: grid; grid-template-columns: 46% 54%; min-height: 100svh; }
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #193c34;
  color: #f1f4ea;
  display: flex;
  flex-direction: column;
  padding: 48px clamp(36px, 5.5vw, 88px);
}
/* The original circular impression, clipped at the panel's edge. */
.intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 16%;
  right: -330px;
  width: 520px;
  height: 520px;
  border: 1px solid #e1ead00a;
  border-radius: 50%;
  box-shadow: 0 0 0 80px #e1ead005, 0 0 0 160px #e1ead003;
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; width: fit-content; }
.brand img { border: 1px solid #ffffff29; border-radius: 11px; }
.brand > span { font-size: 24px; font-weight: 600; letter-spacing: -.8px; }
.brand b { font-weight: 400; color: #c7d8ce; }
.intro-content { margin: auto 0; padding: 76px 0; }
.eyebrow { font-size: 11px; letter-spacing: 2.1px; font-weight: 600; color: #bbcec2; margin: 0 0 26px; }
.intro h1 {
  font-size: clamp(36px, 3.7vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 0 0 24px;
}
.intro-description { font-size: 16px; line-height: 1.7; color: #b9cec5; margin: 0; }
.journey { margin-top: 54px; max-width: 340px; }
.journey > div { padding: 17px 0; border-top: 1px solid #ffffff17; }
.journey p { font-size: 15px; line-height: 1.5; margin: 0; }
.journey small { display: block; font-size: 12px; color: #a8c0b4; margin-top: 2px; }
.form-side { display: flex; flex-direction: column; padding: 51px clamp(28px, 4.4vw, 70px) 28px; }
.top-note { align-self: flex-end; font-size: 10px; letter-spacing: 1.6px; color: #687c73; }
.form-wrap { width: 100%; max-width: 382px; margin: auto; padding: 58px 0 66px; }
.heading-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #dce5db;
  border-radius: 13px;
  background: #eef2eb;
  margin-bottom: 26px;
  color: #376353;
}
.heading-icon svg { height: 23px; width: 23px; }
.form-heading h2 { font-size: 31px; letter-spacing: -1.2px; line-height: 1.2; font-weight: 600; margin: 0 0 10px; }
.form-heading > p { font-size: 14px; line-height: 1.6; color: #6e7c76; margin: 0; }
.form-heading { margin-bottom: 35px; }
.field { margin-bottom: 23px; }
.field label { font-size: 13px; font-weight: 600; display: block; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row a { font-size: 12px; text-decoration: none; color: #4d7263; padding: 5px 0; }
.label-row a:hover, .back-link:hover { text-decoration: underline; }
.field input {
  display: block;
  width: 100%;
  height: 52px;
  border: 1px solid #d6ded8;
  border-radius: 8px;
  background: #fff;
  color: #172e29;
  padding: 0 15px;
  transition: box-shadow .15s, border-color .15s;
  margin-top: 9px;
  font-size: 14px;
}
.field input::placeholder { color: #8a948f; }
.field input[aria-invalid=true] { border-color: #b64040; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 54px; }
.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  border-radius: 6px;
  color: #7d8b83;
}
.password-toggle:hover { color: #193c34; background: #eff4ef; }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle[aria-pressed=true] { color: #193c34; background: #eaf0e8; }
.field-error:empty { display: none; }
.field-error, .caps-warning { display: block; font-size: 12px; line-height: 1.5; color: #a63232; margin-top: 7px; }
.caps-warning { color: #936019; }
.submit {
  width: 100%;
  min-height: 52px;
  border: 1px solid #193c34;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #193c34;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, transform .15s;
  text-decoration: none;
}
.submit:hover { background: #255346; }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: .72; }
.button-arrow { font-size: 21px; font-weight: 400; line-height: 1; }
.submit[aria-busy=true] .button-arrow {
  width: 17px;
  height: 17px;
  border: 2px solid #ffffff55;
  border-top-color: #fff;
  border-radius: 50%;
  color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.account-note { display: flex; gap: 12px; border-top: 1px solid #e1e6df; padding-top: 24px; margin-top: 31px; color: #687a70; }
.account-note > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.account-note p { font-size: 12px; line-height: 1.6; margin: 0; color: #465c50; }
.account-note p span { display: block; color: #7a867f; font-size: 12px; margin-top: 3px; }
.form-footer { display: flex; justify-content: space-between; gap: 16px; font-size: 10px; color: #7d8981; line-height: 1.5; }
.login-help { display: grid; gap: 6px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e1e6e1; font-size: 12px; }
.login-help p { margin: 0 0 2px; color: #425249; }
.login-help a { color: #274c3e; width: fit-content; overflow-wrap: anywhere; }
.form-footer { align-items: center; flex-wrap: wrap; }
.auth-developer { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #7d8981; font-size: 10px; }
.auth-developer-logo { position: relative; display: block; width: 150px; height: 41px; overflow: hidden; background: #fff; border-radius: 3px; }
.auth-developer-logo img { position: absolute; width: 100%; height: auto; top: 50%; left: 0; transform: translateY(-50%); }
.notice { border: 1px solid #ecd0cb; background: #fbefec; color: #943d30; padding: 13px 15px; font-size: 13px; line-height: 1.6; border-radius: 8px; margin-bottom: 23px; overflow-wrap: anywhere; }
.notice.success { background: #edf4e9; border-color: #d2dfcb; color: #38603d; }
.back-link { display: block; width: fit-content; margin: 24px auto 0; font-size: 13px; text-decoration: none; color: #5c7164; }
.policy-note { font-size: 14px; line-height: 1.7; }
.sso { margin-top: 16px; }
@media (min-width: 1600px) {
  .intro { padding-left: max(88px, calc((100vw - 1440px) / 2)); }
  .intro-content { max-width: 450px; }
}
@media (max-width: 1000px) {
  .intro { padding: 36px; }
  .intro h1 { font-size: 40px; }
  .intro-description { font-size: 14px; }
  .form-side { padding: 38px 36px 24px; }
  .form-heading h2 { font-size: 28px; }
  .form-footer { flex-direction: column; gap: 3px; }
  .journey { margin-top: 38px; }
}
@media (max-width: 700px) {
  .auth-layout { display: flex; flex-direction: column; }
  .intro { padding: 25px 26px 30px; flex-shrink: 0; }
  .intro::after {
    top: -200px;
    right: -380px;
  }
  .brand > span { font-size: 22px; }
  .brand img { width: 34px; height: 34px; }
  .intro-content { padding: 30px 0 0; margin: 0; }
  .eyebrow, .intro-description, .journey { display: none; }
  .intro h1 { font-size: 29px; letter-spacing: -1px; line-height: 1.2; margin: 0; max-width: 330px; }
  .intro h1 br { display: none; }
  .form-side { padding: 25px 26px 21px; flex: 1; }
  .top-note { align-self: flex-start; font-size: 9px; letter-spacing: 1.5px; }
  .form-wrap { padding: 31px 0 36px; max-width: 420px; margin: 0 auto; }
  .heading-icon { display: none; }
  .form-heading { margin-bottom: 28px; }
  .form-heading h2 { font-size: 27px; }
  .form-heading > p { font-size: 13px; }
  .field input { font-size: 16px; }
  .form-footer { flex-direction: row; flex-wrap: wrap; margin-top: auto; font-size: 10px; }
  .account-note { margin-top: 27px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Installed phones keep sign-in clear of the status bar, home indicator and landscape notch. */
@media (max-width: 900px) {
  .auth-layout { min-height: 100dvh; }
  .field input { font-size: 16px; }
  .intro { padding-left: max(26px, env(safe-area-inset-left)); padding-top: max(25px, env(safe-area-inset-top)); }
  .form-side { padding-right: max(26px, env(safe-area-inset-right)); padding-bottom: max(21px, env(safe-area-inset-bottom)); }
  .back-link, .login-help a { display: inline-flex; align-items: center; min-height: 44px; }
}
