/*
 * Store sign-in, sign-up and password recovery: blast-supabase-auth templates/form.php on the logged-out My Account page,
 * body.blast-auth-page (inc/account-auth.php). Figma "Login" (WIN Holiday 2026, 736:4307) is the sign-up state:
 * - a #24252C page and a 26px title (the frame's BLAST BY WIN logo above it is left out: the Store header already shows the brand);
 * - a 348px field column: 14/20 labels 4px above 42px white inputs, 20px between fields, 12/20 help 4px under a field;
 * - a 340x42 pill button 44px under the last field, and a 12/16 line 24px under the button.
 * The Store header takes the frame's top: the title starts where the frame's logo did, 143px under it (247px in the frame, less
 * the 104px header), and the last line ends 220px above the footer, as in the frame. Sign-in, recovery and the code steps are not in the Figma; they reuse these
 * parts, with the forgot-password link and Remember me in the row under the password (Mobbin sign-in patterns).
 * The button is the frame's dark pill while required fields are empty or invalid, and the redeem pages' blue once they are valid.
 */

body.blast-auth-page {
	--auth-page:#24252c;
	--auth-ink:#fffaf5;
	--auth-title:#fff;
	--auth-field:#18181e;
	--auth-line:#d1d1da;
	--auth-accent:#5572ff;
	--auth-accent-hover:#3f5ef5;
	--auth-red:#ef4444;
	--auth-font:'Blast Poppins',Poppins,Arial,sans-serif;
	background:var(--auth-page);
}

/* Elementor's section and column keep their padding (the form starts 74px under the header); the form adds the rest. */
body.blast-auth-page .blast-auth { box-sizing:border-box; width:100%; max-width:402px; margin:69px auto 146px; color:var(--auth-ink);
	font:400 14px/20px var(--auth-font); letter-spacing:0; text-align:left; text-transform:none; }
body.blast-auth-page .blast-auth *, body.blast-auth-page .blast-auth *::before, body.blast-auth-page .blast-auth *::after { box-sizing:border-box; }
body.blast-auth-page .blast-auth :is(h3,p,label) { font-style:normal; letter-spacing:0; text-transform:none; }
body.blast-auth-page .blast-auth a { color:var(--auth-ink); text-decoration:underline; text-underline-offset:2px; }
body.blast-auth-page .blast-auth a:is(:hover,:focus-visible) { color:var(--auth-ink); text-decoration-thickness:2px; }
body.blast-auth-page .blast-auth :is(a,button):focus-visible { outline:2px solid var(--auth-ink); outline-offset:2px; }

/* The 348px field column inside the 402px frame. */
body.blast-auth-page .blast-auth-panel { display:flex; flex-direction:column; margin:0; padding:0 27px; border:0; background:none; }
/* Figma's 24px line box is too tight for a title that wraps; a 30px line, pulled up 3px, keeps one-line titles where Figma has them. */
body.blast-auth-page .blast-auth-panel h3 { margin:-3px 0 40px; padding:0; color:var(--auth-title); font:700 26px/30px var(--auth-font); letter-spacing:-.02em; text-align:center; }
body.blast-auth-page .blast-auth-panel > p { margin:20px 0 0; padding:0; color:var(--auth-ink); font:400 12px/18px var(--auth-font); }
/* A note straight under the title (the intro, or the code step's instructions) sits 16px under it and 27px above the field. */
body.blast-auth-page .blast-auth-panel > h3 + p { margin:-27px 0 27px; text-align:center; }

body.blast-auth-page .blast-auth-panel > label { display:flex; flex-direction:column; gap:4px; margin:20px 0 0; padding:0; color:var(--auth-ink); font:400 14px/20px var(--auth-font); }
body.blast-auth-page .blast-auth-panel > :is(h3,h3 + p) + label { margin-top:0; }
/* Sign-up asks for the first and last name side by side above the email (not in the Figma; as on the redeem pages). */
body.blast-auth-page .blast-auth-panel > .blast-auth-names { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 20px; margin:0; }
body.blast-auth-page .blast-auth-panel .blast-auth-names label { display:flex; flex-direction:column; gap:4px; min-width:0; margin:0; padding:0; color:var(--auth-ink); font:400 14px/20px var(--auth-font); }
body.blast-auth-page .blast-auth-panel input:not([type=checkbox]) { display:block; width:100%; height:42px; margin:0; padding:8px 12px; border:1px solid var(--auth-line); border-radius:4px;
	background:#fff; color:var(--auth-field); font:400 14px/24px var(--auth-font); box-shadow:none; outline:0; }
body.blast-auth-page .blast-auth-panel input:not([type=checkbox]):focus { border-color:var(--auth-accent); box-shadow:0 0 0 1px var(--auth-accent); }
body.blast-auth-page .blast-auth-panel input[aria-invalid=true] { border-color:var(--auth-red); box-shadow:0 0 0 1px var(--auth-red); }
body.blast-auth-page .blast-auth-panel > .blast-field-help { margin:4px 0 0; font:400 12px/20px var(--auth-font); }

/* Figma's 20px row under the password: Remember me on the left, the forgot-password link on the right. */
body.blast-auth-page .blast-auth-panel .blast-auth-options { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:20px; margin:4px 0 0; }
body.blast-auth-page .blast-auth-panel .blast-auth-forgot { font:400 12px/20px var(--auth-font); text-align:right; white-space:nowrap; }
body.blast-auth-page .blast-auth-panel :is(.blast-auth-remember,.blast-auth-consent) { display:flex; flex-direction:row; align-items:center; gap:8px; margin:0; padding:0;
	color:var(--auth-ink); font:400 12px/20px var(--auth-font); cursor:pointer; }
body.blast-auth-page .blast-auth-panel > .blast-auth-consent { align-items:flex-start; margin-top:20px; }
body.blast-auth-page .blast-auth-panel input[type=checkbox] { flex:none; width:16px; height:16px; margin:0; accent-color:var(--auth-accent); cursor:pointer; }
body.blast-auth-page .blast-auth-panel .blast-auth-consent input[type=checkbox] { margin-top:2px; }

body.blast-auth-page .blast-auth-panel [data-submit] { display:flex; align-items:center; justify-content:center; width:340px; max-width:calc(100% - 8px); height:42px; min-height:0;
	margin:44px auto 0; padding:10px; border:0; border-radius:20px; background:rgba(255,255,255,.1); color:#fff; font:700 16px/24px var(--auth-font);
	letter-spacing:0; text-transform:none; text-decoration:none; box-shadow:none; cursor:pointer; transition:background-color .15s ease; }
body.blast-auth-page .blast-auth-panel [data-submit]:hover { background:rgba(255,255,255,.16); color:#fff; }
body.blast-auth-page .blast-auth-panel:not(:has(:invalid)) [data-submit] { background:var(--auth-accent); }
body.blast-auth-page .blast-auth-panel:not(:has(:invalid)) [data-submit]:hover { background:var(--auth-accent-hover); }
body.blast-auth-page .blast-auth-panel [data-submit]:disabled { opacity:.6; cursor:progress; }
body.blast-auth-page .blast-auth-panel [data-status] { margin:16px 0 0; font:400 12px/18px var(--auth-font); text-align:center; }
body.blast-auth-page .blast-auth-panel [data-status]:empty { display:none; }

/* The 402px line 24px under the button. */
body.blast-auth-page .blast-auth-switch { display:block; margin:24px 0 0; padding:0; text-align:center; }
body.blast-auth-page .blast-auth-switch p { margin:0; padding:0; color:var(--auth-ink); font:400 12px/16px var(--auth-font); }
body.blast-auth-page .blast-auth-switch p a { font-weight:700; }

body.blast-auth-page .blast-auth-notice { margin:0 27px 24px; padding:12px 16px; border:1px solid rgba(255,250,245,.3); border-radius:4px; color:var(--auth-ink);
	font:400 12px/18px var(--auth-font); text-align:center; }
body.blast-auth-page .woocommerce-notices-wrapper:not(:empty) { max-width:348px; margin:0 auto; }

@media (max-width:767px) {
	body.blast-auth-page .blast-auth { margin:16px auto 80px; }
}
@media (max-width:440px) {
	body.blast-auth-page .blast-auth-panel { padding:0; }
	body.blast-auth-page .blast-auth-notice { margin-right:0; margin-left:0; }
}
