/* WS Food Ordering: sign in / create account / forgot password, in the Snappy Bites design. */
body.wsfo-auth-page {
	--a-accent: var(--wsfo-accent, #9B1111); --a-gold: var(--wsfo-gold, #F8B30F);
	--a-ink: #1D1A17; --a-muted: #6B635A; --a-line: #ECDCC6; --a-sunk: #F7EDDF; --a-cream: #FFF8EE; --a-leaf: #1E7A4C;
}
/* The card carries its own heading, so the theme's black title bar goes. */
body.wsfo-auth-page .wd-page-title, body.wsfo-auth-page .page-title { display: none !important; }
body.wsfo-auth-page .wd-content-layout, body.wsfo-auth-page .site-content { padding-top: 0 !important; }

.wsfo-auth { font-family: Montserrat, -apple-system, "Segoe UI", system-ui, sans-serif; color: var(--a-ink); display: flex; justify-content: center; padding: clamp(28px, 6vw, 64px) 0; background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--a-gold) 16%, transparent), transparent 70%); }
.wsfo-auth *, .wsfo-auth *::before, .wsfo-auth *::after { box-sizing: border-box; }
.wsfo-auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--a-line); border-radius: 24px; padding: clamp(22px, 5vw, 34px); box-shadow: 0 18px 50px rgba(29, 26, 23, .08); position: relative; transition: opacity .15s; }
.wsfo-auth-card.is-in { animation: wsfo-auth-in .22s ease-out; }
.wsfo-auth-card.is-loading { opacity: .55; pointer-events: none; }
.wsfo-auth-card.is-loading::after { content: ""; position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--a-line); border-top-color: var(--a-accent); animation: wsfo-auth-spin .7s linear infinite; }
@keyframes wsfo-auth-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes wsfo-auth-spin { to { transform: rotate(360deg); } }

.wsfo-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--a-sunk); border-radius: 99px; margin-bottom: 22px; }
.wsfo-auth-tabs a { text-align: center; padding: 10px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--a-muted) !important; text-decoration: none !important; transition: background .15s, color .15s; }
.wsfo-auth-tabs a.is-on { background: #fff; color: var(--a-ink) !important; box-shadow: 0 1px 4px rgba(29, 26, 23, .12); }

.wsfo-auth-head { margin-bottom: 18px; }
.wsfo-auth-head h1 { font: 800 clamp(24px, 4vw, 28px)/1.15 "Bricolage Grotesque", Montserrat, sans-serif !important; letter-spacing: -.01em; margin: 0 0 6px !important; color: var(--a-ink) !important; text-transform: none !important; }
.wsfo-auth-head p { color: var(--a-muted); font-size: 14.5px; line-height: 1.5; margin: 0 !important; }
.wsfo-auth-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--a-accent) 10%, #fff); color: var(--a-accent); margin-bottom: 14px; }
.wsfo-auth-ic.is-ok { background: #DDF0E5; color: var(--a-leaf); }
.wsfo-auth-back { display: inline-block; margin-bottom: 16px; font-weight: 600; font-size: 13.5px; color: var(--a-muted) !important; text-decoration: none !important; }
.wsfo-auth-back:hover { color: var(--a-ink) !important; }

.wsfo-auth-form { display: flex; flex-direction: column; gap: 14px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.wsfo-auth-form .form-row { margin: 0 !important; padding: 0 !important; width: 100% !important; float: none !important; }
.wsfo-auth-form label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 13.5px; margin: 0 0 6px !important; color: var(--a-ink); }
.wsfo-auth-forgot { font-weight: 600; font-size: 13px; color: var(--a-accent) !important; text-decoration: none !important; }
.wsfo-auth-form input.input-text, .wsfo-auth-form input[type="text"], .wsfo-auth-form input[type="email"], .wsfo-auth-form input[type="password"] {
	width: 100%; height: 50px !important; border: 1px solid var(--a-line) !important; border-radius: 14px !important; background: var(--a-cream) !important;
	padding: 0 16px !important; font: 500 15.5px Montserrat, sans-serif !important; color: var(--a-ink) !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s, background .15s;
}
.wsfo-auth-form input:focus { border-color: var(--a-accent) !important; background: #fff !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--a-accent) 12%, transparent) !important; outline: 0; }
.wsfo-auth-form .password-input { display: block; position: relative; }
.wsfo-auth-form .show-password-input { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.wsfo-auth-check { display: flex !important; justify-content: flex-start !important; align-items: center !important; gap: 8px; font-weight: 500 !important; color: var(--a-muted) !important; cursor: pointer; }
.wsfo-auth-check input { accent-color: var(--a-accent); width: 17px; height: 17px; margin: 0; }
.wsfo-auth-note { color: var(--a-muted); font-size: 13.5px; background: var(--a-sunk); padding: 10px 14px; border-radius: 12px; margin: 0 !important; }
.wsfo-auth-form .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--a-muted); }
.wsfo-auth-form .woocommerce-privacy-policy-text p { margin: 0; }

.wsfo-auth .wsfo-auth-btn, .wsfo-auth a.wsfo-auth-btn {
	display: block; width: 100%; height: 52px; line-height: 52px; padding: 0 20px !important; border: 0 !important; border-radius: 99px !important;
	background: var(--a-accent) !important; color: #fff !important; font: 700 15.5px Montserrat, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
	text-align: center; text-decoration: none !important; cursor: pointer; box-shadow: 0 10px 22px color-mix(in srgb, var(--a-accent) 28%, transparent) !important; transition: transform .15s, filter .15s; margin-top: 4px;
}
.wsfo-auth .wsfo-auth-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wsfo-auth-switch { text-align: center; color: var(--a-muted); font-size: 14px; margin: 20px 0 0 !important; }
.wsfo-auth-switch a { color: var(--a-accent) !important; font-weight: 700; text-decoration: none !important; }

/* WooCommerce notices (wrong password, email already registered…) shown above the card */
body.wsfo-auth-page .woocommerce > .woocommerce-notices-wrapper, body.wsfo-auth-page .woocommerce > .woocommerce-error, body.wsfo-auth-page .woocommerce > .woocommerce-message, body.wsfo-auth-page .woocommerce > .woocommerce-info { max-width: 440px; margin: 24px auto -8px !important; }
body.wsfo-auth-page .woocommerce-error, body.wsfo-auth-page .woocommerce-message, body.wsfo-auth-page .woocommerce-info { border-radius: 14px !important; font-family: Montserrat, sans-serif; font-size: 14px; }

@media (max-width: 480px) {
	.wsfo-auth { padding: 18px 0 32px; }
	.wsfo-auth-card { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .wsfo-auth-card.is-in { animation: none; } }

/* Riders / kitchen staff sign in here too */
.wsfo-auth-team { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--a-sunk); font-size: 13.5px; line-height: 1.45; color: var(--a-ink); }
.wsfo-auth-team span { font-size: 20px; line-height: 1.1; }
.wsfo-auth-team p { margin: 0 !important; }
.wsfo-auth-team a { color: var(--a-accent) !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.wsfo-auth-team-note { margin-top: 14px !important; text-align: center; }
