:root {
      --gold: #C4A071;
      --cream: #DFCCB1;
      --brown: #846044;
      --sage: #98A086;
      --rose: #A76D5E;
      --ink: #2D2D2D;
      --mute: #6B6B6B;
      --line: #E8DFD2;
      --paper: #FFFCFA;
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; }
    body {
      font-family: Rajdhani, system-ui, sans-serif;
      color: var(--ink);
      background: var(--paper);
      -webkit-font-smoothing: antialiased;
    }

    .login-shell {
      min-height: 100%;
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
    }

    /* Brand panel */
    .brand-panel {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(ellipse 80% 60% at 20% 15%, rgba(255,255,255,.35), transparent 55%),
        linear-gradient(160deg, #EDE2D0 0%, #DFCCB1 42%, #C4A071 100%);
      padding: 40px 48px 48px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 100vh;
    }
    .brand-panel::after {
      content: "";
      position: absolute;
      inset: auto -10% -20% 35%;
      height: 70%;
      background:
        radial-gradient(circle at 30% 40%, rgba(152,160,134,.28), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(132,96,68,.18), transparent 45%);
      pointer-events: none;
    }
    .brand-top {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .brand-top a.logo {
      display: inline-flex;
      align-items: center;
    }
    .brand-top img {
      height: 40px;
      width: auto;
      display: block;
    }
    .back-link {
      font-size: 15px;
      font-weight: 600;
      color: var(--brown);
      text-decoration: none;
      letter-spacing: 0.02em;
    }
    .back-link:hover { color: var(--ink); }

    .brand-copy {
      position: relative;
      z-index: 1;
      max-width: 440px;
      padding-bottom: 24px;
    }
    .brand-kicker {
      margin: 0 0 14px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--brown);
    }
    .brand-copy h1 {
      margin: 0 0 16px;
      font-size: clamp(36px, 4.2vw, 52px);
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: -0.02em;
      color: #1b2a4a;
    }
    .brand-copy p {
      margin: 0;
      font-size: 18px;
      font-weight: 500;
      line-height: 1.45;
      color: rgba(45,45,45,.82);
      max-width: 34ch;
    }
    .brand-points {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 10px;
      margin-top: 36px;
    }
    .brand-points span {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 15px;
      font-weight: 600;
      color: var(--brown);
    }
    .brand-points i {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--sage);
      display: inline-block;
    }

    /* Form panel */
    .form-panel {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 28px;
      background: #fff;
    }
    .form-card {
      width: 100%;
      max-width: 420px;
    }
    .form-card h2 {
      margin: 0 0 8px;
      font-size: 32px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #1b2a4a;
    }
    .form-lead {
      margin: 0 0 28px;
      font-size: 16px;
      font-weight: 500;
      color: var(--mute);
      line-height: 1.4;
    }

    .tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      padding: 5px;
      background: #F6F1EA;
      border-radius: 12px;
      margin-bottom: 28px;
    }
    .tab-btn {
      border: 0;
      background: transparent;
      border-radius: 9px;
      padding: 11px 12px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      color: var(--mute);
      cursor: pointer;
      transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    }
    .tab-btn.is-active {
      background: #fff;
      color: var(--brown);
      box-shadow: 0 1px 3px rgba(132,96,68,.12);
    }

    .field { margin-bottom: 16px; }
    .field label {
      display: block;
      margin: 0 0 7px;
      font-size: 14px;
      font-weight: 700;
      color: var(--ink);
      letter-spacing: 0.02em;
    }
    .field input {
      width: 100%;
      height: 48px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #FFFCFA;
      font-family: inherit;
      font-size: 16px;
      font-weight: 500;
      color: var(--ink);
      outline: none;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }
    .field input::placeholder { color: #A39A90; }
    .field input:hover { border-color: #D7CBB8; }
    .field input:focus {
      border-color: var(--gold);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(196,160,113,.22);
    }

    .row-between {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 6px 0 22px;
    }
    .remember {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 600;
      color: var(--mute);
      cursor: pointer;
      user-select: none;
    }
    .remember input {
      width: 16px;
      height: 16px;
      accent-color: var(--brown);
      cursor: pointer;
    }
    .forgot {
      font-size: 14px;
      font-weight: 700;
      color: var(--brown);
      text-decoration: none;
    }
    .forgot:hover { color: var(--gold); }

    .btn-primary {
      width: 100%;
      height: 50px;
      border: 0;
      border-radius: 999px;
      background: var(--brown);
      color: #fff;
      font-family: inherit;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background .18s ease, transform .12s ease;
    }
    .btn-primary:hover { background: #6f5138; }
    .btn-primary:active { transform: translateY(1px); }

    .divider {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 12px;
      margin: 22px 0;
      color: #A39A90;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .divider::before,
    .divider::after {
      content: "";
      height: 1px;
      background: var(--line);
    }

    .btn-ghost {
      width: 100%;
      height: 48px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--ink);
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: border-color .18s ease, background .18s ease;
    }
    .btn-ghost:hover {
      border-color: var(--gold);
      background: #FFFCFA;
    }
    .btn-ghost svg { width: 18px; height: 18px; }

    .foot-note {
      margin: 22px 0 0;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
      color: var(--mute);
    }
    .foot-note a {
      color: var(--brown);
      font-weight: 700;
      text-decoration: none;
    }
    .foot-note a:hover { color: var(--gold); }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%) translateY(20px);
      background: var(--ink);
      color: #fff;
      padding: 12px 18px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease, transform .2s ease;
      z-index: 20;
    }
    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .panel-hidden { display: none; }

    @media (max-width: 920px) {
      .login-shell { grid-template-columns: 1fr; }
      .brand-panel {
        min-height: auto;
        padding: 24px 22px 28px;
      }
      .brand-copy h1 { font-size: 34px; }
      .brand-copy p { font-size: 16px; }
      .brand-points { margin-top: 22px; }
      .form-panel { padding: 28px 20px 40px; align-items: flex-start; }
    }
