﻿    :root {
      --bg: #f3efe5;
      --panel: #fffdf7;
      --ink: #1f2a37;
      --muted: #6b7280;
      --primary: #0f766e;
      --primary-strong: #115e59;
      --accent: #c2410c;
      --line: #e7dbc4;
      --error: #b42318;
      --ok: #067647;
      --shadow: 0 20px 45px rgba(31, 42, 55, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 10% 10%, #f8d9a8 0%, transparent 36%),
        radial-gradient(circle at 90% 82%, #bde3d8 0%, transparent 32%),
        linear-gradient(145deg, #f5f1e8 0%, #efe7d7 100%);
      display: grid;
      place-items: center;
      padding: 24px;
    }

    .shell {
      width: 100%;
      max-width: 980px;
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      border: 1px solid var(--line);
      background: var(--panel);
      box-shadow: var(--shadow);
      overflow: hidden;
      animation: rise 620ms ease;
    }

    .hero {
      padding: 42px;
      background: linear-gradient(165deg, #15423d 0%, #0f766e 44%, #11998e 100%);
      color: #f8fafc;
      position: relative;
      isolation: isolate;
      overflow: hidden;
    }

    .hero-brand {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 12px;
      flex-wrap: nowrap;
      min-width: 0;
    }

    .hero-brand-copy {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
    }

    .hero-logo-orb {
      width: 96px;
      aspect-ratio: 1036 / 678;
      border-radius: 10px;
      padding: 0;
      background: transparent;
      box-shadow: none;
      transform: none;
      flex-shrink: 0;
      overflow: hidden;
    }

    .hero-logo-orb img {
      width: 100%;
      height: auto;
      object-fit: contain;
      border-radius: inherit;
      display: block;
    }

    .hero-logo-orb picture {
      display: block;
      width: 100%;
      height: auto;
    }

    .hero-logo-img {
      width: 96px;
      aspect-ratio: 1036 / 678;
      max-width: 96px;
      min-width: 96px;
      display: block;
      object-fit: contain;
      border-radius: 10px;
    }

    .hero-brand-tag {
      margin: 4px 0 0;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.76);
      font-weight: 700;
    }

    .hero::before,
    .hero::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      opacity: 0.25;
      z-index: -1;
    }

    .hero::before {
      width: 300px;
      height: 300px;
      right: -70px;
      top: -80px;
      background: #d9f99d;
    }

    .hero::after {
      width: 220px;
      height: 220px;
      left: -30px;
      bottom: -80px;
      background: #fdba74;
    }

    .kicker {
      font-family: inherit;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 12px;
      opacity: 0.88;
    }

    h1 {
      margin: 12px 0 14px;
      font-family: inherit;
      font-size: clamp(30px, 3.4vw, 42px);
      line-height: 1.05;
    }

    .hero p {
      max-width: 36ch;
      margin: 0;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.92);
    }

    .card {
      padding: 32px;
    }

    .tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      background: #f3f4f6;
      border-radius: 10px;
      padding: 4px;
      gap: 4px;
      margin-bottom: 22px;
      position: relative;
      z-index: 5;
    }

    .tab {
      border: 0;
      background: transparent;
      border-radius: 8px;
      padding: 10px;
      cursor: pointer;
      font-weight: 600;
      color: #374151;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .tab.active {
      background: #ffffff;
      color: #0b4f4a;
      box-shadow: inset 0 0 0 1px #d1d5db;
    }

    form {
      display: none;
      animation: fade 220ms ease;
      position: relative;
      z-index: 1;
    }

    form.active {
      display: block;
    }

    [hidden] {
      display: none !important;
    }

    .field {
      margin-bottom: 14px;
    }

    #verifyForm .inline-link,
    #resetCodeForm .inline-link {
      margin-top: 12px;
    }

    .verify-actions {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .verify-actions .inline-link {
      margin-top: 0;
      display: block;
      width: fit-content;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-size: 14px;
      color: #334155;
    }

    input,
    select {
      width: 100%;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      padding: 11px 12px;
      font-size: 15px;
      background: #fff;
      transition: border-color 160ms ease, box-shadow 160ms ease;
    }

    input:focus,
    select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
      outline: none;
    }

    #mfaLoginForm .inline-link {
      margin-top: 12px;
    }

    .mfa-passkey-panel {
      border: 1px solid rgba(15, 118, 110, 0.24);
      border-radius: 14px;
      padding: 14px;
      background: rgba(15, 118, 110, 0.08);
      color: #334155;
      display: grid;
      gap: 8px;
      margin-bottom: 12px;
    }

    .mfa-passkey-panel strong,
    .mfa-passkey-panel p {
      margin: 0;
    }

    .mfa-passkey-panel p {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .action {
      margin-top: 8px;
      width: 100%;
      border: 0;
      background: linear-gradient(135deg, var(--primary) 0%, #0f9f92 100%);
      color: #fff;
      border-radius: 10px;
      padding: 12px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 120ms ease, filter 160ms ease;
    }

    .action:hover {
      filter: brightness(1.04);
      transform: translateY(-1px);
    }

    .hint {
      margin-top: 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .inline-link {
      -webkit-appearance: none;
      appearance: none;
      margin-top: 8px;
      min-height: 44px;
      padding: 10px 0 !important;
      border: 0 !important;
      background: none !important;
      box-shadow: none !important;
      color: #0b4f4a;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      line-height: 1.35;
      display: inline-flex;
      align-items: center;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    button.inline-link {
      all: unset;
      box-sizing: border-box;
      -webkit-appearance: none;
      appearance: none;
      min-height: 44px;
      margin-top: 8px;
      padding: 10px 0;
      color: var(--primary-strong);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      line-height: 1.35;
      display: inline-flex;
      align-items: center;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .inline-link:hover {
      text-decoration: underline;
    }

    .inline-link:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 3px;
      border-radius: 8px;
      text-decoration: underline;
    }

    .inline-link:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      text-decoration: none;
    }

    button.inline-link:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      text-decoration: none;
    }

    .status {
      min-height: 22px;
      margin-top: 14px;
      font-size: 14px;
      font-weight: 600;
    }

    .status.error {
      color: var(--error);
    }

    .status.ok {
      color: var(--ok);
    }

    .captcha-wrap {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid #e5e7eb;
      display: none;
      text-align: center;
    }

    #captchaContainer {
      min-height: 70px;
      display: grid;
      place-items: center;
      width: 100%;
      margin: 0 auto;
    }

    #captchaContainer > * {
      margin-left: auto !important;
      margin-right: auto !important;
    }

    #captchaContainer iframe,
    #captchaContainer div {
      margin-left: auto !important;
      margin-right: auto !important;
    }

    .captcha-label {
      font-size: 12px;
      color: #64748b;
      margin: 0 0 8px;
      text-align: center;
    }

    .oauth-wrap {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid #e5e7eb;
      text-align: center;
    }

    .oauth-title {
      margin: 0 0 10px;
      font-size: 13px;
      color: #475569;
      font-weight: 600;
      text-align: center;
    }

    .oauth-grid {
      display: flex;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .oauth-btn {
      border: 1px solid #cbd5e1;
      background: #ffffff;
      border-radius: 10px;
      padding: 9px 8px;
      font-size: 13px;
      font-weight: 600;
      color: #1f2937;
      cursor: pointer;
      transition: border-color 150ms ease, transform 120ms ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-left: auto;
      margin-right: auto;
      width: 100%;
      max-width: 420px;
    }

    .oauth-icon {
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .oauth-icon svg {
      width: 18px;
      height: 18px;
      display: block;
    }

    .oauth-btn:hover {
      border-color: #94a3b8;
      transform: translateY(-1px);
    }

    .endpoint-note {
      margin-top: 12px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.4;
    }

    @keyframes rise {
      from {
        transform: translateY(10px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes fade {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @media (max-width: 900px) {
      .shell {
        grid-template-columns: 1fr;
      }

      .hero {
        padding: 28px;
      }

      .hero-brand {
        gap: 10px;
        align-items: center;
      }

      .hero-logo-orb {
        width: 74px;
        aspect-ratio: 1036 / 678;
        border-radius: 8px;
        padding: 0;
      }

      .hero-logo-img {
        width: 74px;
        aspect-ratio: 1036 / 678;
        max-width: 74px;
        min-width: 74px;
        border-radius: 8px;
        object-fit: contain;
      }

      h1 {
        font-size: clamp(36px, 10vw, 56px);
        line-height: 1.08;
      }

      .hero p {
        max-width: 30ch;
      }

      .card {
        padding: 24px;
      }

      .oauth-btn {
        max-width: 100%;
      }
    }

    @media (max-width: 720px) {
      body {
        min-height: 100svh;
        display: block;
        overflow-x: hidden;
        padding: 10px;
      }

      .shell {
        max-width: 100%;
        min-height: calc(100svh - 20px);
      }

      .hero,
      .card {
        padding: 18px;
      }

      .hero {
        min-height: auto;
      }

      .hero-brand {
        gap: 10px;
      }

      .hero-logo-orb,
      .hero-logo-img {
        width: 64px;
        min-width: 64px;
        max-width: 64px;
        border-radius: 8px;
      }

      .hero-brand-copy {
        min-width: 0;
      }

      .hero-brand-tag {
        font-size: 11px;
        line-height: 1.25;
      }

      h1 {
        font-size: 32px;
        line-height: 1.08;
      }

      .hero p {
        max-width: none;
        font-size: 14px;
      }

      .tabs {
        margin-bottom: 18px;
      }

      .tab,
      .action,
      input,
      select,
      .oauth-btn {
        min-height: 44px;
      }

      input,
      select {
        font-size: 16px;
      }

      .captcha-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      #captchaContainer {
        justify-items: start;
        min-width: 300px;
      }

      #captchaContainer > *,
      #captchaContainer iframe,
      #captchaContainer div {
        margin-left: 0 !important;
        margin-right: 0 !important;
      }

      .status {
        overflow-wrap: anywhere;
      }
    }

    @media (max-width: 420px) {
      .hero-logo-orb,
      .hero-logo-img {
        width: 56px;
        min-width: 56px;
        max-width: 56px;
      }

      .hero-brand-tag {
        display: none;
      }

      h1 {
        font-size: 29px;
      }
    }

    :root {
      --bg: #08121f;
      --panel: #0d1b2d;
      --ink: #f4fbff;
      --muted: #9fb0be;
      --primary: #19c7b1;
      --primary-strong: #6ff4e4;
      --accent: #d8a441;
      --line: rgba(255, 255, 255, 0.12);
      --error: #fda4af;
      --ok: #8af3c8;
      --shadow: 0 26px 80px rgba(3, 12, 23, 0.42);
    }

    body {
      color: var(--ink);
      background:
        radial-gradient(circle at 16% 12%, rgba(25, 199, 177, 0.16), transparent 30%),
        radial-gradient(circle at 84% 72%, rgba(18, 123, 184, 0.18), transparent 34%),
        linear-gradient(135deg, #08121f 0%, #0b1726 48%, #0d2834 100%);
    }

    .shell {
      max-width: 1080px;
      border-color: var(--line);
      border-radius: 12px;
      background: #08121f;
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .hero {
      background:
        linear-gradient(145deg, rgba(8, 18, 31, 0.96), rgba(12, 66, 76, 0.9)),
        #08121f;
      border-right: 1px solid var(--line);
    }

    .hero::before,
    .hero::after {
      display: none;
    }

    .hero-logo-orb,
    .hero-logo-img {
      width: 82px;
      min-width: 82px;
      max-width: 82px;
      aspect-ratio: 1;
      border-radius: 10px;
    }

    .kicker,
    .hero-brand-tag {
      color: var(--primary-strong);
    }

    h1 {
      max-width: 12ch;
      color: #ffffff;
      font-weight: 700;
    }

    .hero p {
      color: #d7e7ed;
    }

    .card {
      background: #f7fbfa;
      color: #10202a;
    }

    .tabs {
      background: #e8f1ef;
      border-radius: 8px;
    }

    .tab {
      border-radius: 6px;
      color: #40515c;
    }

    .tab.active {
      color: #0f766e;
      box-shadow: inset 0 0 0 1px #cfe0dc;
    }

    label {
      color: #334854;
      font-weight: 700;
    }

    input,
    select {
      border-color: #c9d9d6;
      border-radius: 8px;
      background: #ffffff;
      color: #10202a;
    }

    input:focus,
    select:focus {
      border-color: #19c7b1;
      box-shadow: 0 0 0 3px rgba(25, 199, 177, 0.16);
    }

    .action {
      border-radius: 8px;
      background: linear-gradient(135deg, #19c7b1 0%, #127bb8 100%);
      color: #03131f;
      font-weight: 800;
    }

    .inline-link,
    button.inline-link {
      color: #0f766e;
      font-weight: 700;
    }

    .oauth-wrap,
    .captcha-wrap {
      border-color: #dbe8e5;
    }

    .oauth-title,
    .endpoint-note,
    .hint,
    .captcha-label {
      color: #52646f;
    }

    .oauth-btn {
      border-color: #c9d9d6;
      border-radius: 8px;
      color: #10202a;
    }

    .status.error {
      color: #b42318;
    }

    .status.ok {
      color: #067647;
    }

    @media (max-width: 900px) {
      .hero {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      h1 {
        max-width: 16ch;
      }
    }

    @media (max-width: 720px) {
      body {
        padding: 0;
        background: #08121f;
      }

      .shell {
        min-height: 100svh;
        border: 0;
        border-radius: 0;
      }

      .hero {
        padding: 22px 18px;
      }

      .card {
        padding: 20px 18px 24px;
      }

      h1 {
        max-width: none;
        font-size: 31px;
      }

      .hero-logo-orb,
      .hero-logo-img {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
      }
    }

    .card {
      background: #0d1b2d;
      color: #f4fbff;
      border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    .tabs {
      background: rgba(255, 255, 255, 0.07);
    }

    .tab {
      color: #c3d3dc;
    }

    .tab.active {
      background: rgba(25, 199, 177, 0.14);
      color: #9ff7eb;
      box-shadow: inset 0 0 0 1px rgba(25, 199, 177, 0.24);
    }

    label {
      color: #cfe1e7;
    }

    input,
    select {
      border-color: rgba(255, 255, 255, 0.13);
      background: rgba(255, 255, 255, 0.06);
      color: #f4fbff;
    }

    input::placeholder {
      color: #b7c7d0;
    }

    .hint,
    .oauth-title,
    .endpoint-note,
    .captcha-label {
      color: #bfd0d8;
    }

    .oauth-wrap,
    .captcha-wrap {
      border-color: rgba(255, 255, 255, 0.12);
    }

    .oauth-btn {
      border-color: rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.07);
      color: #f4fbff;
    }

    .inline-link,
    button.inline-link {
      color: #9ff7eb;
      font-weight: 800;
    }

    .inline-link:focus-visible,
    button.inline-link:focus-visible {
      outline: 2px solid #9ff7eb;
      outline-offset: 3px;
      border-radius: 8px;
      text-decoration: none;
    }

    .oauth-btn:hover {
      border-color: rgba(25, 199, 177, 0.42);
    }

    .shell {
      border-radius: 22px;
    }

    .hero {
      border-radius: 22px 0 0 22px;
    }

    .card {
      border-radius: 0 22px 22px 0;
    }

    .hero-logo-orb,
    .hero-logo-img,
    .tabs,
    .action,
    input,
    select,
    .oauth-btn {
      border-radius: 14px;
    }

    .tab {
      border-radius: 10px;
    }

    @media (max-width: 900px) {
      .hero {
        border-radius: 22px 22px 0 0;
      }

      .card {
        border-radius: 0 0 22px 22px;
      }
    }

    @media (max-width: 720px) {
      .shell,
      .hero,
      .card {
        border-radius: 0;
      }
    }
  
