:root {
  --oxblood: oklch(31% 0.085 22);
  --oxblood-deep: oklch(23% 0.065 22);
  --cream: oklch(91% 0.035 78);
  --champagne: oklch(76% 0.075 82);
  --white: oklch(98% 0.006 78);
  --muted: oklch(82% 0.018 78);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--oxblood-deep); }
body { min-height: 100%; margin: 0; background: var(--oxblood-deep); color: var(--white); font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }

.login-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); }
.login-panel { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100svh; padding: clamp(24px, 4vw, 64px); background: var(--oxblood); }
.login-brand { display: flex; align-items: center; gap: 12px; width: max-content; color: inherit; text-decoration: none; }
.login-brand img { width: 42px; height: 42px; }
.login-brand span { display: grid; line-height: 1.05; }
.login-brand b { font: 500 20px Georgia, serif; }
.login-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.login-copy { max-width: 490px; margin: auto 0 38px; }
.eyebrow { margin: 0 0 18px; color: var(--champagne); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 9ch; margin: 0 0 24px; font: 500 clamp(3rem, 5.6vw, 5.7rem)/.95 Georgia, serif; letter-spacing: -.035em; text-wrap: balance; }
.login-copy > p:last-child { max-width: 43ch; margin: 0; color: var(--muted); line-height: 1.65; }

form { width: min(100%, 470px); }
label { display: block; margin: 0 0 7px; color: var(--cream); font-size: 13px; font-weight: 650; }
input { width: 100%; height: 54px; margin: 0 0 18px; padding: 0 16px; border: 1px solid color-mix(in oklch, var(--cream) 34%, transparent); border-radius: 8px; outline: 0; background: color-mix(in oklch, var(--oxblood-deep) 32%, transparent); color: var(--white); transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus { border-color: var(--champagne); background: color-mix(in oklch, var(--oxblood-deep) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--champagne) 20%, transparent); }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.toggle-password { position: absolute; top: 7px; right: 7px; min-width: 58px; height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--champagne); cursor: pointer; font-size: 12px; font-weight: 700; }
.login-error { min-height: 22px; margin: -6px 0 10px; color: oklch(86% 0.12 35); font-size: 13px; }
.submit-login { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; border-radius: 8px; background: var(--cream); color: var(--oxblood-deep); cursor: pointer; font-weight: 750; transition: transform .25s var(--ease), background .2s; }
.submit-login:hover { transform: translateY(-2px); background: var(--white); }
.submit-login:disabled { cursor: wait; opacity: .72; transform: none; }
.private-note { margin: 28px 0 0; color: color-mix(in oklch, var(--cream) 64%, transparent); font-size: 11px; letter-spacing: .04em; }
.private-note span { margin-right: 7px; color: var(--champagne); font-size: 8px; }

.login-visual { position: relative; min-height: 100svh; overflow: hidden; background: var(--cream); }
.login-visual > img { width: 100%; height: 100%; object-fit: cover; }
.login-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in oklch, var(--oxblood) 76%, transparent), transparent 22%), linear-gradient(0deg, color-mix(in oklch, var(--oxblood-deep) 82%, transparent), transparent 38%); pointer-events: none; }
.visual-caption { position: absolute; right: clamp(24px, 5vw, 76px); bottom: clamp(26px, 5vw, 68px); z-index: 1; display: grid; justify-items: end; text-shadow: 0 2px 26px color-mix(in oklch, var(--oxblood-deep) 70%, transparent); }
.visual-caption span { color: var(--champagne); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.visual-caption b { margin: 5px 0 2px; font: 500 clamp(2.6rem, 5vw, 5rem)/1 Georgia, serif; letter-spacing: .08em; }
.visual-caption small { color: var(--cream); font-size: 14px; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-panel { min-height: 75svh; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }
  .login-copy { margin: 28px 0 18px; }
  .login-copy .eyebrow { margin-bottom: 10px; }
  .login-copy h1 { margin-bottom: 14px; font-size: clamp(2.45rem, 11.5vw, 3.3rem); }
  .login-copy > p:last-child { line-height: 1.5; }
  input { height: 50px; margin-bottom: 12px; }
  .password-field input { margin-bottom: 12px; }
  .toggle-password { top: 5px; }
  .login-error { min-height: 18px; margin: -3px 0 7px; }
  .submit-login { min-height: 52px; }
  .private-note { margin-top: 16px; }
  .login-visual { height: 25svh; min-height: 0; grid-row: 1; }
  .login-visual > img { position: absolute; inset: 0; }
  .login-visual::after { background: linear-gradient(0deg, var(--oxblood) 0%, transparent 34%); }
  .visual-caption { right: 20px; bottom: 28px; }
  .visual-caption b { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
