﻿:root {
      color-scheme: light;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-synthesis: none;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      --ink: #192940;
      --muted: #708097;
      --line: #dfe6ef;
      --accent: #3d5ed7;
      --accent-dark: #2f4fc3;
      --navy: #14243a;
      --page-background: #eef2f7;
      --button-gradient: linear-gradient(110deg, #4568e5, #3455cf);
    }

    * { box-sizing: border-box; }

    body {
      min-width: 320px;
      min-height: 100vh;
      margin: 0;
      color: var(--ink);
      background: var(--page-background);
    }

    button, input { font: inherit; }
    button { cursor: pointer; }

    .page {
      min-height: 100vh;
      display: grid;
      grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
      padding: 22px;
      gap: 22px;
    }

    .welcome {
      position: relative;
      display: flex;
      min-height: calc(100vh - 44px);
      flex-direction: column;
      overflow: hidden;
      padding: clamp(30px, 5vw, 64px);
      border-radius: 24px;
      color: #fff;
      background:
        radial-gradient(ellipse at 8% 100%, rgba(69, 99, 206, .35), transparent 45%),
        radial-gradient(ellipse at 98% 8%, rgba(79, 98, 207, .18), transparent 40%),
        var(--navy);
    }

    .welcome::before, .welcome::after {
      position: absolute;
      width: 430px;
      height: 430px;
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 50%;
      content: "";
      pointer-events: none;
    }

    .welcome::before { right: -250px; top: 16%; }
    .welcome::after { right: -205px; top: 21%; width: 340px; height: 340px; }

    .brand {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 12px;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: -.025em;
    }

    .brand-mark {
      display: grid;
      width: 40px;
      height: 40px;
      place-items: center;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 13px;
      background: rgba(255,255,255,.12);
    }

    .brand-mark svg { width: 22px; height: 22px; }

    .welcome-copy {
      position: relative;
      z-index: 1;
      max-width: 490px;
      margin: clamp(64px, 11vh, 110px) 0 20px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #aebcff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      width: 18px;
      height: 1px;
      background: #879aff;
      content: "";
    }

    h1 {
      max-width: 450px;
      margin: 18px 0 16px;
      font-size: clamp(36px, 4.5vw, 57px);
      font-weight: 650;
      letter-spacing: -.055em;
      line-height: 1.08;
    }

    .welcome-copy p {
      max-width: 400px;
      margin: 0;
      color: #b5bfd4;
      font-size: 15px;
      line-height: 1.75;
    }

    .welcome-bottom {
      position: relative;
      z-index: 1;
      display: flex;
      justify-content: space-between;
      margin-top: 30px;
      color: #98a4bf;
      font-size: 10px;
    }

    .form-side {
      display: grid;
      min-height: calc(100vh - 44px);
      place-items: center;
      padding: 42px 6vw;
      border: 1px solid #edf0f5;
      border-radius: 24px;
      background: #fff;
    }

    .auth {
      width: min(100%, 390px);
      padding: 18px 0;
    }

    .mobile-brand { display: none; }
    .auth h2 { margin: 0 0 9px; font-size: 29px; font-weight: 680; letter-spacing: -.045em; }
    .auth-intro { margin: 0 0 29px; color: var(--muted); font-size: 13px; line-height: 1.65; }
    .field { margin-bottom: 17px; }
    .field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 650; }
    .input-wrap { position: relative; }

    .field input {
      width: 100%;
      height: 47px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      outline: none;
      color: var(--ink);
      background: #fff;
      font-size: 13px;
      transition: border-color .18s, box-shadow .18s;
    }

    .field input::placeholder { color: #a8afbf; }
    .field input:focus { border-color: #8c9afa; box-shadow: 0 0 0 3px rgba(82,104,232,.11); }
    .input-wrap.has-action input { padding-right: 54px; }

    .input-action {
      position: absolute;
      top: 50%;
      right: 12px;
      padding: 3px;
      transform: translateY(-50%);
      border: 0;
      color: #838ba0;
      background: transparent;
      font-size: 11px;
      font-weight: 600;
    }

    .form-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 2px 0 21px;
    }

    .remember { display: inline-flex; align-items: center; gap: 8px; color: #596178; font-size: 11px; }
    input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
    .text-button { padding: 0; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 650; }
    .text-button:hover { text-decoration: underline; }
    .resend-confirmation { display: block; margin: 8px auto 0; }
    .verification-panel { margin-top: 4px; }
    .verification-panel h3 { margin: 0 0 18px; color: var(--ink); font-size: 15px; font-weight: 650; }
    .verification-code { text-align: center; font-size: 20px !important; font-weight: 700; letter-spacing: .32em; }
    .captcha-container { display: flex; justify-content: center; margin: 4px 0 16px; }
    .verification-panel .primary-button { margin-top: 3px; }
    .change-signup { display: block; margin: 16px auto 0; color: var(--muted); }

    .primary-button, .google-button {
      display: flex;
      width: 100%;
      height: 47px;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 650;
      transition: background .18s, transform .18s, box-shadow .18s;
    }

    .primary-button { border: 0; color: #fff; background: var(--accent); box-shadow: 0 5px 12px rgba(82,104,232,.18); }
    .primary-button:hover { transform: translateY(-1px); background: var(--button-gradient); box-shadow: 0 8px 17px rgba(61,94,215,.24); }
    .google-button { margin-top: 12px; border: 1px solid var(--line); color: #333b4d; background: white; }
    .google-button:hover { background: #f8f9fc; }
    .google-button:disabled { cursor: wait; opacity: .7; }
    .google-button svg { width: 17px; height: 17px; }
    .divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 18px; color: #a2a8b7; font-size: 10px; }
    .divider::before, .divider::after { height: 1px; flex: 1; background: #eceef3; content: ""; }
    .switch-copy { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
    .switch-copy .text-button { margin-left: 3px; font-size: 12px; }
    .security-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 25px 0 0; color: #9299a8; font-size: 10px; }
    .security-note svg { width: 13px; height: 13px; }
    .message { min-height: 18px; margin: 12px 0 0; color: #b34646; text-align: center; font-size: 11px; line-height: 1.5; }
    .message.success { color: #27744b; }
    .hidden { display: none !important; }
    #auth-content, #auth-content.auth-transitioning { opacity: 1; transform: none; }

    @media (max-width: 900px) {
      .page { grid-template-columns: minmax(300px, .9fr) minmax(390px, 1.1fr); gap: 14px; padding: 14px; }
      .welcome { min-height: calc(100vh - 28px); padding: 32px; }
      .form-side { min-height: calc(100vh - 28px); padding: 36px; }
      h1 { font-size: 43px; }
    }

    @media (max-width: 700px) {
      body { background: #fff; }
      .page { display: block; min-height: 100vh; padding: 0; }
      .welcome { display: none; }
      .form-side { min-height: 100vh; padding: 30px 25px; border: 0; border-radius: 0; }
      .auth { max-width: 410px; }
      .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 42px; color: var(--ink); font-size: 14px; font-weight: 700; }
      .mobile-brand .brand-mark { color: var(--accent); border-color: #e4e8ff; background: #f1f3ff; }
      .mobile-brand .brand-mark svg { color: var(--accent); }
    }

    @media (max-width: 380px) {
      .form-side { padding-right: 20px; padding-left: 20px; }
      .form-options { align-items: flex-start; gap: 10px; }
      .remember, .text-button { font-size: 10px; }
    }

    .page {
      width: min(1600px, 100%);
      min-height: 100vh;
      margin: 0 auto;
      padding: clamp(18px, 3vw, 42px);
      gap: clamp(20px, 3vw, 42px);
    }
    .welcome {
      min-height: calc(100vh - clamp(36px, 6vw, 84px));
      padding: clamp(34px, 5vw, 72px);
      border-radius: 28px;
      background:
        radial-gradient(ellipse at 12% 93%, rgba(71,119,191,.32), transparent 42%),
        linear-gradient(145deg, #1b3553 0%, #14243a 58%, #101d31 100%);
    }
    .welcome::before, .welcome::after { border-color: rgba(193,210,255,.1); }
    .welcome::before { right: -215px; top: 12%; width: 500px; height: 500px; }
    .welcome::after { right: -156px; top: 19%; width: 380px; height: 380px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 44px; height: 44px; border-radius: 14px; background: rgba(134,164,255,.17); }
    .welcome-copy { max-width: 530px; margin-top: clamp(80px, 14vh, 150px); }
    .eyebrow { color: #b6c7ff; font-size: 10px; letter-spacing: .13em; }
    h1 { max-width: 500px; font-size: clamp(42px, 5.3vw, 68px); line-height: 1.04; }
    .welcome-copy p { max-width: 440px; color: #c0cbdb; font-size: 16px; line-height: 1.75; }
    .welcome-bottom { color: #a6b3c7; font-size: 11px; }
    .form-side {
      min-height: calc(100vh - clamp(36px, 6vw, 84px));
      padding: clamp(22px, 4vw, 52px);
      border: 1px solid #e4e9f0;
      border-radius: 28px;
      background: #fff;
      box-shadow: 0 16px 50px rgba(25,41,64,.055);
    }
    .auth { width: min(100%, 420px); padding: 20px 0; }
    .auth h2 { margin-bottom: 11px; font-size: 32px; letter-spacing: -.04em; }
    .auth-intro { margin-bottom: 31px; font-size: 14px; line-height: 1.7; }
    .field { margin-bottom: 19px; }
    .field label { margin-bottom: 9px; font-size: 13px; }
    .field input { height: 51px; padding-right: 15px; padding-left: 15px; border-radius: 11px; font-size: 14px; }
    .input-wrap.has-action input { padding-right: 59px; }
    .input-action { right: 14px; font-size: 12px; }
    .form-options { margin: 1px 0 22px; }
    .remember { font-size: 12px; }
    .text-button { font-size: 12px; }
    .primary-button, .google-button { height: 51px; border-radius: 11px; font-size: 14px; }
    .primary-button { background: var(--button-gradient); box-shadow: 0 7px 16px rgba(61,94,215,.2); }
    .primary-button:hover { background: var(--button-gradient); box-shadow: 0 10px 20px rgba(61,94,215,.24); }
    .google-button { margin-top: 13px; font-size: 13px; }
    .divider { margin: 23px 0 19px; font-size: 11px; }
    .switch-copy { margin-top: 24px; font-size: 13px; }
    .switch-copy .text-button { font-size: 13px; }
    .security-note { margin-top: 27px; font-size: 11px; }
    .message { font-size: 12px; }
    button:focus-visible, input:focus-visible {
      outline: 3px solid rgba(61,94,215,.22);
      outline-offset: 2px;
    }
    .primary-button:disabled, .google-button:disabled { cursor: not-allowed; opacity: .65; }

    @media (max-width: 900px) {
      .page { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; padding: 18px; }
      .welcome { min-height: calc(100vh - 36px); padding: 32px; }
      .form-side { min-height: calc(100vh - 36px); padding: 28px; }
      h1 { font-size: clamp(36px, 5vw, 48px); }
    }
    @media (max-width: 700px) {
      body { background: #f5f7fa; }
      .page { width: 100%; padding: 0; }
      .form-side {
        min-height: 100vh;
        padding: 28px 24px;
        border: 0;
        border-radius: 0;
        background:
          radial-gradient(ellipse at 100% 0%, rgba(222,230,255,.45), transparent 36%),
          #fff;
        box-shadow: none;
      }
      .auth { max-width: 430px; }
      .mobile-brand { margin-bottom: 48px; font-size: 16px; }
      .mobile-brand .brand-mark { color: var(--accent); border-color: #e0e7fb; background: #f0f4ff; }
      .auth h2 { font-size: 30px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
    }
