@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/login/assets/inter-latin-variable.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --canvas: #f7f6f2;
  --surface: #fff;
  --ink: #181513;
  --muted: #524c47;
  --orange: #fe7220;
  --orange-hover: #ef6411;
  --link: #b73e0c;
  --border: #aaa39e;
  --error: #a52b21;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); }
[hidden] { display: none !important; }
::selection { background: #ffd5b9; color: var(--ink); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: .22em; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
button:disabled { cursor: wait; opacity: .6; }
.login-layout { position: relative; display: grid; grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); min-height: 100svh; width: 100%; padding: 24px; }
.panel-form { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; padding: 12px 22px 24px clamp(32px, 4.5vw, 70px); }
.brand { position: absolute; z-index: 2; top: clamp(42px, 4vw, 64px); left: clamp(44px, 4.2vw, 68px); mix-blend-mode: multiply; }
.brand a { display: inline-block; width: clamp(132px, 10vw, 168px); border-radius: 3px; }
.brand img { display: block; width: 100%; height: auto; }
.login-navigation { display: flex; justify-content: flex-end; }
.form-content { margin: auto; padding: 32px 0 64px; width: 100%; max-width: 420px; }
h1 { font-size: clamp(28px, 2.2vw, 38px); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 12px; font-weight: 700; text-wrap: balance; }
h1:focus { outline: none; }
.form-lead { margin: 0; color: var(--muted); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.55; max-width: 36ch; text-wrap: pretty; }
.sent-email { font-size: 16px; line-height: 1.5; font-weight: 600; margin: 8px 0 0; overflow-wrap: anywhere; }
form { margin-top: 32px; }
label { display: block; font-size: 14px; line-height: 1.5; font-weight: 600; margin-bottom: 6px; }
.input-wrap { position: relative; }
.input-wrap svg { width: 20px; height: 20px; position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: var(--ink); pointer-events: none; }
input[type=email], .otp-input { width: 100%; height: 52px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 16px; padding: 0 16px; caret-color: var(--link); }
input[type=email] { padding-left: 46px; }
input::placeholder { color: #736b65; opacity: 1; }
input:focus { outline: 2px solid var(--link); outline-offset: 2px; border-color: var(--link); }
input[aria-invalid=true] { border-color: var(--error); }
input[readonly] { background: #faf9f7; }
.button { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 1px solid transparent; border-radius: 10px; padding: 12px 20px; font-size: 15px; line-height: 1.5; font-weight: 600; transition: background-color 150ms ease; }
.button-primary { background: var(--orange); color: var(--ink); margin-top: 16px; padding-inline: 44px; }
.button-primary::after { content: ''; position: absolute; right: 18px; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h17M13 5l7 7-7 7' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.button-secondary { background: var(--surface); border-color: var(--border); color: var(--ink); margin-top: 20px; }
.button-passkey { background: var(--ink); color: #fff; gap: 10px; }
.button-passkey svg { width: 22px; height: 22px; flex: none; }
.passkey-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted, #6b635b); font-size: 13px; }
.passkey-divider::before, .passkey-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.text-button { border: 0; background: transparent; padding: 10px 0; color: var(--ink); font-size: 14px; line-height: 1.6; min-height: 44px; text-decoration: underline; text-underline-offset: .22em; }
.method-toggle, .change-email { display: block; margin: 12px auto 0; text-align: center; }
.step-symbol { display: grid; place-items: center; width: 48px; height: 48px; color: var(--link); background: #fff0e6; border-radius: 12px; margin-bottom: 24px; }
.step-symbol svg { width: 26px; height: 26px; }
.step-description { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }
.delivery-help { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 22px 0 0; }
.input-hint { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.otp-input { font-size: 20px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.otp-input::placeholder { font-size: 16px; letter-spacing: 0; }
.otp-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.status-msg { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.status-msg:empty { display: none; }
.status-info { color: var(--muted); margin: 16px 0 0; }
.status-error { color: var(--error); margin: 16px 0 0; }
.login-footer { margin-top: 24px; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.login-footer p { margin: 0; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink); text-decoration: underline; }
.panel-art { grid-column: 1; grid-row: 1; position: relative; align-self: start; min-width: 0; height: calc(100svh - 48px); background: #e7e0d7; border-radius: 24px; overflow: hidden; }
.welcome-art { position: absolute; inset: 0; }
.welcome-art img, .welcome-art video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.welcome-art video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.welcome-art video.is-playing { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover:not(:disabled) { background: var(--orange-hover); }
  .button-secondary:hover:not(:disabled) { background: #f7f6f2; }
  .text-button:hover:not(:disabled), .back-link:hover { color: #812b08; text-decoration: underline; }
}
@media (max-width: 1099px), (max-aspect-ratio: 4/3) {
  .login-layout { display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
  .panel-art { display: none; }
  .panel-form { flex: 1; padding: 0; }
  .brand { position: static; margin-bottom: 24px; }
  .brand a { width: clamp(138px, 40vw, 180px); }
  .login-navigation { position: absolute; top: max(30px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); }
  .back-link { font-size: 14px; }
  .form-content { padding: 36px 0 48px; }
  h1 { font-size: 36px; }
  .form-lead { font-size: 17px; line-height: 1.55; }
  form { margin-top: 32px; }
  label { font-size: 15px; }
  input[type=email], .otp-input { height: 58px; font-size: 16px; border-radius: 10px; }
  .input-wrap svg { left: 18px; width: 22px; height: 22px; }
  input[type=email] { padding-left: 52px; }
  .button { min-height: 58px; font-size: 16px; border-radius: 10px; }
  .button-primary { margin-top: 20px; padding-inline: 40px; }
  .button-primary::after { right: 17px; width: 20px; height: 20px; }
  .text-button { font-size: 14px; }
  .method-toggle, .change-email { margin-top: 14px; }
  .otp-input { font-size: 20px; }
  .login-footer { margin-top: 16px; font-size: 12px; }
}
@media (max-width: 359px) { h1 { font-size: 32px; } .login-layout { padding-left: 20px; padding-right: 20px; } .login-navigation { right: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
