*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --gold: #c9a96e;
    --gold-light: #e8c98a;
    --gold-dim: rgba(201,169,110,0.18);
    --gold-dark: #8b6914;
    --cream: #faf6ef;
    --ink: #1a1208;
    --warm-black: #0d0b06;
    --panel-dark: #130f08;
    --card-bg: #fffef9;
    --border: #e2d5bc;
    --text-muted: #8a7a60;
    --error: #b03a2e;
  }

  html, body {
    height: 100%;
  }

  body {
    font-family: 'Raleway', sans-serif;
    background: var(--warm-black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    overflow: hidden;
  }

  /* ─── LEFT PANEL ─── */
  .left-panel {
    position: relative;
    background: var(--panel-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 60px;
    overflow: hidden;
  }

  /* SVG background art */
  .left-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .left-bg svg {
    width: 100%;
    height: 100%;
  }

  /* Soft gold radial */
  .left-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 30% 60%, rgba(201,169,110,0.10) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
  }

  .left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .left-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .brand-name {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.06em;
    line-height: 1;
    animation: fadeUp 0.9s 0.1s both;
  }

  .brand-name img {
    width: 170px;
  }

  .brand-sub {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.38em;
    color: rgba(201,169,110,0.55);
    text-transform: uppercase;
    animation: fadeUp 0.9s 0.2s both;
  }

  .left-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0 40px;
  }

  .left-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
    animation: fadeUp 0.9s 0.3s both;
  }

  .left-tagline em {
    font-style: italic;
    color: var(--gold-light);
  }

  .left-desc {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(250,246,239,0.45);
    line-height: 1.8;
    letter-spacing: 0.04em;
    max-width: 340px;
    animation: fadeUp 0.9s 0.4s both;
  }

  /* Ornamental rule */
  .orn-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0;
    animation: fadeUp 0.9s 0.45s both;
  }

  .orn-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gold-dim), transparent);
    max-width: 120px;
  }

  .orn-diamond {
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  .left-footer {
    animation: fadeUp 0.9s 0.5s both;
  }

  .left-footer p {
    font-size: 0.62rem;
    color: rgba(250,246,239,0.2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* ─── RIGHT PANEL (login form) ─── */
  .right-panel {
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.7s cubic-bezier(0.16,1,0.3,1) both;
  }

  @keyframes slideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* Subtle corner decoration */
  .right-panel::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .right-panel::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .form-wrap {
    width: 100%;
    max-width: 360px;
  }

  .form-headline {
    margin-bottom: 36px;
    animation: fadeUp 0.8s 0.3s both;
  }

  .form-headline h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .form-headline p {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
  }

  .divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s 0.35s both;
  }

  .divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .divider-diamond {
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  /* Field */
  .field {
    margin-bottom: 20px;
    animation: fadeUp 0.8s both;
  }

  .field:nth-child(1) { animation-delay: 0.4s; }
  .field:nth-child(2) { animation-delay: 0.5s; }

  .field label {
    display: block;
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 9px;
  }

  .input-wrap {
    position: relative;
  }

  .input-wrap input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--cream);
    padding: 14px 44px 14px 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    border-radius: 0;
    -webkit-appearance: none;
  }

  .input-wrap input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
    background: #fff;
  }

  .input-wrap input.has-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(176,58,46,0.07);
  }

  .input-wrap input::placeholder { color: #c5b89e; font-weight: 300; }

  .eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #c5b89e;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
  }

  .eye-btn:hover { color: var(--gold); }

  .field-error {
    font-size: 0.6rem;
    color: var(--error);
    margin-top: 6px;
    letter-spacing: 0.04em;
    display: none;
  }

  .field-error.show { display: block; }

  /* Options */
  .options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 28px;
    animation: fadeUp 0.8s 0.55s both;
  }

  .check-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
  }

  .custom-check {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
  }

  .custom-check input { display: none; }

  .custom-check .tick {
    display: none;
    width: 8px;
    height: 8px;
    background: var(--gold-dark);
    transform: rotate(45deg);
  }

  .custom-check input:checked ~ .tick { display: block; }
  .custom-check:has(input:checked) { border-color: var(--gold); background: rgba(201,169,110,0.08); }

  .check-label span {
    font-size: 0.72rem;
    color: var(--text-muted);
  }

  .forgot-link {
    font-size: 0.72rem;
    color: var(--gold-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
  }

  .forgot-link:hover { color: var(--gold); text-decoration: underline; }

  /* Button */
  .btn-primary {
    width: 100%;
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 17px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    animation: fadeUp 0.8s 0.6s both;
  }

  .btn-primary span { position: relative; z-index: 1; }

  .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.18), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }

  .btn-primary:hover { background: #241b0a; }
  .btn-primary:hover::before { transform: translateX(100%); }
  .btn-primary:active { transform: scale(0.995); }

  .btn-primary.loading span { opacity: 0; }
  .btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }

  @keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

  /* Register link */
  .register-prompt {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    animation: fadeUp 0.8s 0.65s both;
  }

  .register-prompt a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }

  .register-prompt a:hover { color: var(--gold); }

  /* Footer links */
  .form-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 8px;
    animation: fadeUp 0.8s 0.7s both;
  }

  .form-footer a {
    font-size: 0.65rem;
    color: #bbb0a0;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.2s;
  }

  .form-footer a:hover { color: var(--gold-dark); }

  .form-footer .sep { color: var(--border); font-size: 0.65rem; }

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

  /* Toast */
  .toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: var(--ink);
    color: var(--gold-light);
    padding: 12px 32px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(201,169,110,0.3);
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
  }

  .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

  @media (max-width: 860px) {
    body { grid-template-columns: 1fr; }
    .left-panel { display: none; }
    .right-panel { padding: 60px 32px; }
  }