:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#24313b;background:#f7fafc}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:grid;place-items:center;padding:16px}
a{color:#df642b;text-decoration:none}a:hover{text-decoration:underline}
.auth-shell{width:min(100%,430px)}
.auth-back{display:inline-block;margin-bottom:10px;font-size:13px;font-weight:650}
.auth-card{padding:26px;border:1px solid #e7edf1;border-radius:20px;background:#fff;box-shadow:0 18px 48px rgba(34,62,80,.08)}
h1{margin:0 0 8px;font-size:25px;line-height:1.2;letter-spacing:-.035em}
.auth-lead{margin:0 0 19px;color:#657684;font-size:13px;line-height:1.5}
.auth-field{margin-bottom:13px}.auth-field label{display:block;margin-bottom:5px;font-size:13px;font-weight:700}
.auth-field input{display:block;width:100%;height:44px;padding:0 14px;border:1px solid #cbd6dd;border-radius:11px;background:#fff;font:inherit;font-size:14px;color:#24313b;outline:none}
.auth-field input:focus{border-color:#df642b;box-shadow:0 0 0 3px rgba(223,100,43,.12)}
.auth-field input[aria-invalid="true"]{border-color:#bd342c}
.auth-field small{display:block;margin-top:5px;color:#6b7b86;font-size:12px}
.auth-error,.errorlist{margin:7px 0 0;padding:0;list-style:none;color:#b42318;font-size:13px;line-height:1.45}
.auth-flash{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px;padding:12px 11px 12px 13px;border:1px solid #bed7ef;border-left:4px solid #3d86c3;border-radius:10px;background:#edf6ff;color:#184b75;box-shadow:0 4px 12px rgba(27,74,108,.07);font-size:13px;line-height:1.5;transition:opacity .25s ease,transform .25s ease}
.auth-flash--error{border-color:#f0b8b0;border-left-color:#c5392c;background:#fff0ee;color:#982b22}
.auth-flash--success{border-color:#a8dabb;border-left-color:#27965a;background:#e9f8ef;color:#185c38}
.auth-flash__icon{display:flex;flex:none;width:20px;height:20px;margin-top:1px}
.auth-flash__icon svg{width:20px;height:20px}
.auth-flash__text{flex:1;min-width:0;font-weight:600;overflow-wrap:anywhere}
.auth-flash__close{flex:none;display:grid;place-items:center;width:22px;height:22px;margin:-2px -2px 0 0;padding:0;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;font-size:20px;line-height:1;opacity:.7;cursor:pointer}
.auth-flash__close:hover{background:rgba(0,0,0,.06);opacity:1}
.auth-flash__close:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.auth-flash.is-dismissing{opacity:0;transform:translateY(-5px)}
@media(prefers-reduced-motion:reduce){.auth-flash{transition:none}}
.auth-duplicate-login{display:inline-block;margin-top:6px;color:#d85620;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.auth-options{display:flex;justify-content:flex-end;margin:-3px 0 19px;font-size:13px}
.auth-submit{display:block;width:100%;min-height:44px;padding:9px 16px;border:0;border-radius:11px;background:#e86529;color:#fff;font:inherit;font-weight:750;cursor:pointer}
.auth-submit:hover{background:#cf541f}
.auth-submit:disabled{opacity:.55;cursor:not-allowed}
.auth-submit:disabled:hover{background:#f46b28}
.auth-switch{margin:22px 0 0;text-align:center;color:#657684;font-size:14px}
.auth-note{margin:18px 0 0;color:#6b7b86;font-size:12px;line-height:1.5}
.auth-legal-note{display:flex;align-items:center;gap:14px;margin:18px 0 16px;padding:14px 16px;border:1px solid #ffe9d7;border-radius:15px;background:#fff7ee;color:#46515e;font-size:14px;line-height:1.5}
.auth-legal-note p{margin:0}
.auth-legal-icon{flex:none;width:30px;height:34px;color:#e86529}
.auth-legal-note a{color:#c45720;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.auth-legal-note a:focus-visible{outline:2px solid #c45720;outline-offset:2px}
.auth-secondary{display:inline-block;margin-top:16px;padding:0;border:0;background:none;color:#df642b;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.auth-secondary:disabled{color:#9aa7b2;cursor:not-allowed}
.auth-resend-hint{margin:14px 0 0;color:#657684;font-size:13px;line-height:1.5}
.auth-resend-hint strong{color:#34444e;font-variant-numeric:tabular-nums}
@media(max-width:480px){.auth-card{padding:22px 20px}h1{font-size:23px}}
.auth-social{display:grid;gap:8px;margin-top:18px}
.auth-social-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:42px;padding:8px 14px;border:1px solid #dce5e9;border-radius:11px;background:#fff;color:#34444e;font-size:13px;font-weight:650;text-decoration:none;transition:border-color .15s,background .15s}
.auth-social-button:hover{border-color:#c2d1d9;background:#f8fafb;text-decoration:none}
.auth-social-button:focus-visible{outline:3px solid rgba(223,100,43,.25);outline-offset:2px}
.auth-social-icon{width:19px;height:19px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#83919a;font-size:12px;white-space:nowrap}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#e5eaed}
@media(max-width:480px){.auth-social-button{font-size:13px}}

/* Email entry */
.auth-entry{background:radial-gradient(circle at 50% 42%,#fff 0,#fff 45%,#fbfaf9 100%)}
.auth-entry .auth-shell{width:min(100%,500px)}
.auth-entry .auth-back{margin:0 0 15px;color:#aa755f;font-size:14px;font-weight:600}
.auth-entry .auth-card{padding:24px 30px 26px;border:1px solid #e7edf1;border-radius:20px;background:#fff;box-shadow:0 18px 48px rgba(34,62,80,.07)}
.auth-brand{display:flex;flex-direction:column;align-items:center;margin:0 0 16px;text-align:center}
.auth-brand-line{display:flex;align-items:center;gap:10px;color:#202b3a;font-size:20px;font-weight:800;letter-spacing:-.045em;white-space:nowrap}
.auth-brand-line img{width:38px;height:38px;border-radius:9px;box-shadow:0 3px 8px rgba(240,91,22,.12)}
.auth-brand p{margin:5px 0 0;color:#72818d;font-size:13px;line-height:1.4}
.auth-entry h1{margin:0 0 8px;color:#1d2b3d;font-size:28px;letter-spacing:-.04em;text-align:center}
.auth-entry .auth-lead{max-width:390px;margin:0 auto;color:#657684;font-size:14px;line-height:1.5;text-align:center}
.auth-entry .auth-social{margin-top:18px;gap:8px}
.auth-entry .auth-social-button{min-height:44px;padding:8px 14px;border-color:#dce5e9;border-radius:10px;color:#283749;font-size:14px}
.auth-entry .auth-social-icon{width:20px;height:20px;flex:none}
.auth-entry .auth-social-button:nth-child(3) .auth-social-icon{width:21px;height:21px}
.auth-entry .auth-divider{margin:17px 0 14px;color:#7e8d98;font-size:13px}
.auth-entry .auth-field{margin-bottom:12px}
.auth-entry .auth-field label{font-size:14px}
.auth-entry .auth-field small{margin-top:8px;color:#657684;font-size:12px;line-height:1.45}
.auth-email-input{position:relative}
.auth-email-input svg{position:absolute;top:50%;left:15px;width:19px;height:19px;transform:translateY(-50%);color:#91a0ad;pointer-events:none}
.auth-entry .auth-email-input input{height:46px;padding-left:44px;border-color:#d6e0e6;border-radius:10px;font-size:14px}
.auth-entry .auth-email-input input::placeholder{color:#9aa7b2}
.auth-entry .auth-submit{min-height:46px;border-radius:10px;background:#f46b28;box-shadow:0 4px 10px rgba(240,91,22,.12);font-size:15px}
.auth-entry .auth-submit:hover{background:#e75e1d}
.auth-entry .auth-submit span{margin-left:7px;font-size:19px;font-weight:400;line-height:0;vertical-align:-1px}
.auth-form-page{background:radial-gradient(circle at 50% 42%,#fff 0,#fff 45%,#fbfaf9 100%)}
.auth-form-page .auth-shell{width:min(100%,500px)}
.auth-form-page .auth-back{margin-bottom:15px;color:#aa755f;font-size:14px;font-weight:600}
.auth-form-page .auth-card{padding:25px 30px 27px;box-shadow:0 18px 48px rgba(34,62,80,.07)}
.auth-form-page .auth-brand{margin-bottom:16px}
.auth-form-page h1{font-size:28px;text-align:center}
.auth-form-page .auth-lead{margin-bottom:22px;font-size:14px;text-align:center}
.auth-form-page .auth-field{margin-bottom:15px}
.auth-form-page .auth-field label{font-size:14px}
.auth-form-page .auth-field input{height:46px;border-color:#d6e0e6;border-radius:10px}
.auth-form-page .auth-email-input input{padding-left:44px}
.auth-form-page .auth-submit{min-height:46px;border-radius:10px;background:#f46b28;font-size:15px}
.auth-form-page .auth-note{margin-top:14px;text-align:center}
.auth-form-page .auth-switch{margin-top:17px}
.auth-form-page .auth-link-button{display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none}
.auth-form-page .auth-link-button:hover{background:#e75e1d;text-decoration:none}
.auth-password-input{position:relative}
.auth-password-input .auth-password-icon{position:absolute;top:50%;left:16px;transform:translateY(-50%);color:#9ca3af;font-size:15px;pointer-events:none}
.auth-form-page .auth-password-input input{padding-left:44px;padding-right:54px}
.auth-password-toggle{position:absolute;top:50%;right:4px;display:grid;place-items:center;width:42px;height:42px;padding:0;transform:translateY(-50%);border:0;border-radius:8px;background:transparent;color:#9ca3af;cursor:pointer}
.auth-password-toggle:hover{color:#6b7280}
.auth-password-toggle:focus-visible{outline:2px solid #df642b;outline-offset:1px}
.auth-password-toggle i{font-size:18px}
.auth-password-toggle .auth-eye-on,.auth-password-toggle[aria-pressed="true"] .auth-eye-off{display:none}
.auth-password-toggle[aria-pressed="true"] .auth-eye-on{display:block}
@media(max-width:480px){
  .auth-entry{display:block;padding:20px 16px 30px}
  .auth-entry .auth-back{margin-bottom:16px;font-size:13px}
  .auth-entry .auth-card{padding:24px 20px}
  .auth-entry .auth-brand{margin-bottom:18px}
  .auth-entry .auth-brand-line{font-size:18px}
  .auth-entry .auth-brand-line img{width:34px;height:34px}
  .auth-entry .auth-brand p{font-size:12px}
  .auth-entry h1{font-size:24px}
  .auth-entry .auth-lead{font-size:13px}
  .auth-entry .auth-social{margin-top:20px;gap:8px}
  .auth-entry .auth-social-button{min-height:44px;font-size:13px}
  .auth-entry .auth-divider{margin:18px 0 15px}
  .auth-form-page{display:block;padding:20px 16px 30px}
  .auth-form-page .auth-back{margin-bottom:16px;font-size:13px}
  .auth-form-page .auth-card{padding:24px 20px}
  .auth-legal-note{gap:11px;padding:12px}
  .auth-legal-icon{width:26px;height:30px}
  .auth-form-page .auth-brand-line{font-size:18px}
  .auth-form-page .auth-brand-line img{width:34px;height:34px}
  .auth-form-page h1{font-size:24px}
  .auth-form-page .auth-lead{font-size:13px}
}
