@import url("/css/felwyn-toast.css");
@layer reset, tokens, base, page, motion;
@layer reset {
  *,*::before,*::after{box-sizing:border-box}
  html,body{min-height:100%;margin:0}
  button,input{font:inherit}
  h1,p{margin-top:0}
}
@layer tokens {
  :root{
    color-scheme:light;
    --paper:#f3f0e8;--canvas:#fffdf8;--ink:#181a20;--muted:#747681;
    --rule:#d7d1c5;--rule2:#b9b2a6;--blue:#2448d8;--blue2:#18329b;
    --blueSoft:#edf0ff;--danger:#b93839;--green:#247153;
    --font:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    --serif:Georgia,"Times New Roman",serif;--mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  }
}
@layer base {
  body{font-family:var(--font);color:var(--ink);background:var(--paper)}
  ::selection{background:var(--blue);color:#fff}
}
@layer page {
  .auth-page{min-height:100dvh;display:grid;place-items:center;padding:24px}
  .auth-window{width:min(clamp(460px,24vw,620px),100%);border:1px solid var(--rule2);border-radius:12px;background:var(--canvas);box-shadow:0 18px 54px rgba(31,29,23,.09);overflow:hidden}
  .auth-window-register{width:min(clamp(500px,26vw,680px),100%)}
  .auth-titlebar{padding:22px 24px 18px;border-bottom:1px solid var(--rule);background:#faf7f0}
  .auth-brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
  .auth-brand-mark{width:34px;height:34px;display:grid;place-items:center;border:1px solid #b9c3fb;border-radius:50%;background:var(--blueSoft);color:var(--blue2);font:italic 700 19px var(--serif)}
  .auth-brand-copy strong{font:italic 700 30px/1 var(--serif);letter-spacing:-.045em}
  .auth-body{padding:28px 24px 24px}
  .auth-heading-block{margin-bottom:22px}
  .auth-heading-block h1,.auth-body>h1{margin-bottom:7px;font:500 31px/1.05 var(--serif);letter-spacing:-.03em}
  .auth-heading-block p,.intro{margin-bottom:0;color:var(--muted);font-size:13px;line-height:1.5}
  .auth-heading-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
  .auth-mode-badge{padding:3px 7px;border:1px solid #b9c3fb;border-radius:999px;background:var(--blueSoft);color:var(--blue2);font:700 8px var(--mono);letter-spacing:.06em;text-transform:uppercase}
  .auth-body form{display:grid;gap:14px}
  .field{display:grid;gap:6px}
  .field label{color:#343640;font-size:11px;font-weight:750}
  .field input{width:100%;min-height:43px;padding:9px 10px;border:1px solid var(--rule2);border-radius:7px;outline:0;background:#fff;color:var(--ink);transition:border-color .12s,box-shadow .12s}
  .field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,72,216,.10)}
  .actions{display:flex;justify-content:flex-end;margin-top:2px;padding-top:4px}
  .actions button{min-height:42px;padding:9px 17px;border:1px solid var(--blue2);border-radius:7px;background:var(--blue);color:#fff;font-size:12px;font-weight:800;cursor:pointer}
  .actions button:hover{background:var(--blue2)}
  .auth-secondary-actions{display:flex;justify-content:space-between;gap:14px;margin-top:20px;padding-top:16px;border-top:1px solid var(--rule)}
  .switch,.button-link-auth{color:var(--blue2);font-size:11px;font-weight:700;text-decoration:none}
  .switch:hover,.button-link-auth:hover{text-decoration:underline;text-underline-offset:3px}
  .muted-switch{color:var(--muted);font-weight:650}
  .actions-right{justify-content:flex-end}
  .intro code{font-family:var(--mono)}
}
@layer motion {
  .is-auth-entering .auth-window{animation:authEnter .34s cubic-bezier(.2,.8,.2,1) both}
  .is-auth-leaving .auth-window{animation:authLeave .18s ease-in both}
  @keyframes authEnter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  @keyframes authLeave{to{opacity:0;transform:translateY(-6px)}}
  @media(prefers-reduced-motion:reduce){.is-auth-entering .auth-window,.is-auth-leaving .auth-window{animation-duration:.01ms!important}}
}

@media(min-width:2200px){
  .auth-titlebar{padding:26px 28px 21px}.auth-body{padding:32px 28px 28px}
  .auth-brand-copy strong{font-size:34px}.auth-body h1,.auth-heading-block h1{font-size:35px}
  .auth-heading-block p,.intro{font-size:14px}.field label{font-size:12px}.field input{min-height:47px;font-size:14px}
}

@media(max-width:520px){
  .auth-page{padding:8px}.auth-window{border-radius:9px}.auth-titlebar{padding:18px}.auth-body{padding:22px 18px 18px}
  .auth-secondary-actions{align-items:stretch;flex-direction:column}.switch{text-align:center}
}
