/* Approved auth-concept-v1: native typography/forms, no outer card or decorative image. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body.auth-page { margin: 0; min-height: 100dvh; background: #111214; color: #f5f2e9; font: 16px/1.5 Inter, sans-serif; }
.auth-page [hidden] { display: none !important; }
.auth-page a { color: #e5c578; text-underline-offset: 4px; }
.auth-page button, .auth-page input { font: inherit; }
.auth-page button, .auth-page a { -webkit-tap-highlight-color: transparent; }
.auth-page button { cursor: pointer; }
.auth-page button:disabled { opacity: .55; cursor: wait; }
.auth-page :focus-visible { outline: 2px solid #c8a457; outline-offset: 4px; }
.auth-page ::selection { color: #111214; background: #c8a457; }
.auth-site-header { max-width: 1100px; margin: auto; min-height: 64px; padding: max(8px, env(safe-area-inset-top)) 20px 8px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #35373b; gap: 16px; }
.auth-page .auth-brand { color: #f5f2e9; text-decoration: none; font-weight: 700; font-size: 23px; letter-spacing: -.7px; display: inline-flex; align-items: center; gap: 10px; }
.auth-brand img { flex-shrink: 0; }
.auth-page .auth-close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #35373b; border-radius: 50%; background: #1b1d20; color: #f5f2e9; text-decoration: none; }
.auth-shell { width: 100%; max-width: 460px; margin: 0 auto; padding: 8px 20px max(40px, env(safe-area-inset-bottom)); }
.auth-page .auth-back { display: flex; gap: 12px; align-items: center; min-height: 48px; color: #c5c7cb; font-size: 15px; text-decoration: none; margin-bottom: 18px; }
.auth-back i { font-size: 14px; }
.auth-intro { margin: 0 0 20px; }
.auth-intro h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px; overflow-wrap: anywhere; }
.auth-intro p { margin: 0; color: #c5c7cb; font-size: 16px; line-height: 1.5; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #4b4d52; margin-bottom: 26px; }
.auth-tab { min-height: 48px; padding: 10px 4px; background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: #c5c7cb; font-size: 16px; line-height: 1.4; }
.auth-tab.active { border-color: #c8a457; font-weight: 600; color: #f5f2e9; }
.auth-form { margin: 0; }
.form-group { margin: 0 0 20px; min-width: 0; }
.form-group > label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 15px; }
.form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.input-wrapper { position: relative; min-width: 0; }
.form-input { width: 100%; min-width: 0; height: 48px; padding: 11px 14px; border: 1px solid #4b4d52; border-radius: 9px; background: #1b1d20; color: #f5f2e9; caret-color: #c8a457; }
.form-input::placeholder { opacity: 1; color: #aeb1b7; }
.form-input:focus { border-color: #c8a457; }
.form-input:has(+ .password-toggle) { padding-right: 52px; }
.password-toggle { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 7px; color: #c5c7cb; }
.field-help { margin: 6px 0 0; font-size: 15px; color: #c5c7cb; line-height: 1.5; }
.text-button { padding: 8px 0; min-height: 44px; background: transparent; border: 0; color: #e5c578; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; line-height: 1.5; }
.auth-forgot-row { margin: -12px 0 20px; text-align: right; }
.auth-primary, .btn-google { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 9px; font-weight: 700; font-size: 16px; line-height: 1.5; white-space: normal; }
.auth-primary { background: #c8a457; color: #111214; border: 1px solid #c8a457; }
.auth-primary:hover:not(:disabled) { background: #d6b56b; }
.btn-google { display: flex; justify-content: center; align-items: center; gap: 10px; background: #1b1d20; border: 1px solid #5d6066; color: #f5f2e9; }
.btn-google i { color: #fa685f; font-size: 20px; }
.auth-page .btn-google:disabled { opacity: 1; color: #c5c7cb; cursor: not-allowed; }
.auth-google-note { margin: 8px 0 0; text-align: center; font-size: 15px; color: #c5c7cb; }
.divider { display: flex; align-items: center; gap: 18px; color: #c5c7cb; font-size: 15px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #4b4d52; }
.auth-create { text-align: center; font-size: 15px; margin: 18px 0 6px; color: #c5c7cb; }
.auth-create .text-button { margin-left: 4px; }
.auth-cart-note { text-align: center; color: #c5c7cb; font-size: 15px; margin: 16px 0; }
.checkbox-wrapper { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 4px 0; font-size: 15px; line-height: 1.6; cursor: pointer; }
.checkbox-wrapper input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #c8a457; flex-shrink: 0; }
.auth-terms { margin-bottom: 22px; }
.auth-status { padding: 12px 14px; border: 1px solid #5d6066; border-radius: 9px; color: #f5f2e9; background: #1b1d20; margin: 0 0 20px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-status[data-kind="error"] { border-color: #d9958f; }
.field-error-message { color: #ffb4ac; font-size: 15px; line-height: 1.5; margin: 6px 0 0; }
.form-input.error { border-color: #e69b94; }
.auth-reset-back { display: block; margin: 16px auto 0; }
/* Save vertical space around registration, retaining type size and48px inputs/actions. */
.auth-page[data-auth-tab="register"] .auth-shell { padding-top: 4px; }
.auth-page[data-auth-tab="register"] .auth-back { margin-bottom: 8px; }
.auth-page[data-auth-tab="register"] .auth-intro { margin-bottom: 12px; }
.auth-page[data-auth-tab="register"] .auth-intro h1 { margin-bottom: 6px; }
.auth-page[data-auth-tab="register"] .auth-tabs { margin-bottom: 18px; }
.auth-page[data-auth-tab="register"] .form-group { margin-bottom: 14px; }
.auth-page[data-auth-tab="register"] .auth-terms { margin-bottom: 16px; }
@media (max-width: 359px) { .form-row { grid-template-columns: 1fr; gap: 0; } .auth-shell { padding-inline: 16px; } .auth-intro h1 { font-size: 24px; } }
@media (min-width: 768px) { .auth-shell { padding-top: 24px; } .auth-intro { margin-bottom: 28px; } }
