/* Sign in / create account (inc/account.php, templates/form-login.php) — Bybsa colours, radius scale 4/6/8. */
.ba-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 6px; font-weight: 700; font-size: 16px; text-decoration: none !important; color: #fff !important; border: 0; cursor: pointer; transition: filter .15s, transform .15s; }
.ba-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ba-btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.ba-btn--wa { background: #25d366; }
.ba-btn--call { background: #0f172a; }
.ba-btn--dark { background: #0f172a !important; color: #fff !important; }
.ba-btn--wa-ghost { background: transparent; color: #25d366 !important; border: 1.5px solid #25d366; min-height: 46px; }
.ba-auth { max-width: 440px; margin: 10px auto 40px; }
.ba-auth__card { background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .06); padding: 30px 30px 24px; }
.ba-auth__head { text-align: center; margin-bottom: 20px; }
.ba-auth__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, #0077ff 12%, #fff); color: #0077ff; margin-bottom: 10px; }
.ba-auth__icon svg { width: 24px; height: 24px; }
.ba-auth__title { font-size: 22px; margin: 0 0 4px; }
.ba-auth__head p { margin: 0; color: #334155; font-size: 14px; }
.ba-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f1f3f5; border-radius: 10px; margin-bottom: 22px; }
.ba-auth__tabs button { border: 0; background: none; border-radius: 7px; padding: 10px 8px; font-size: 14px; font-weight: 600; color: #334155; cursor: pointer; min-height: 0; line-height: 1.2; text-transform: none; }
.ba-auth__tabs button[aria-selected="true"] { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ba-auth__form--register, .ba-auth.is-register .ba-auth__form--login { display: none; }
.ba-auth.is-register .ba-auth__form--register { display: block; }
.ba-auth .ba-field { margin: 0 0 16px; }
.ba-auth .ba-field label { display: block; font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.ba-auth .ba-field label em { font-style: normal; font-weight: 400; color: #9ca3af; font-size: 13px; }
.ba-auth .ba-field input { width: 100%; height: 48px; border-radius: 9px; border: 1px solid #d1d5db; background: #fff; padding: 0 14px; font-size: 16px; }
.ba-auth .ba-field input:focus { border-color: #0077ff; box-shadow: 0 0 0 3px color-mix(in srgb, #0077ff 18%, transparent); outline: 0; }
.ba-auth .ba-field small { display: block; margin-top: 5px; font-size: 12.5px; color: #6b7280; }
.ba-auth .password-input { display: block; position: relative; }
.ba-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 18px; font-size: 14px; }
.ba-auth__check { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; }
.ba-auth__check input { margin: 0; }
.ba-auth .ba-auth__submit, .ba-auth .ba-auth__submit:hover, .ba-auth .ba-auth__submit:focus {
	display: flex; align-items: center; width: 100%; height: 50px; padding: 0 16px; font-size: 16px; font-weight: 700; border-radius: 9px; justify-content: center;
	background: #0077ff !important; color: #fff !important; border: 0; box-shadow: none; text-transform: none; opacity: 1;
}
.ba-auth .ba-auth__submit:hover { filter: brightness(.94); }
.ba-auth__switch { text-align: center; margin: 16px 0 0; font-size: 14px; color: #334155; }
.ba-auth__switch button { border: 0; background: none; padding: 0; min-height: 0; color: #0077ff; font-weight: 600; font-size: 14px; cursor: pointer; text-transform: none; }
.ba-auth__switch button:hover { text-decoration: underline; }
.ba-auth__note { text-align: center; font-size: 13.5px; color: #334155; margin: 18px 8px 0; line-height: 1.6; }
.ba-auth__note a { color: #0077ff; font-weight: 600; }
@media (max-width: 480px) { .ba-auth__card { padding: 24px 18px 20px; border-radius: 12px; } }
/* SMS code steps */
.ba-auth.is-otp .ba-auth__pw, .ba-auth:not(.is-otp) .ba-auth__otp { display: none; }
.ba-otp-phone { display: flex; align-items: stretch; border: 1px solid #d1d5db; border-radius: 9px; overflow: hidden; background: #fff; }
.ba-otp-phone:focus-within { border-color: #0077ff; box-shadow: 0 0 0 3px color-mix(in srgb, #0077ff 18%, transparent); }
.ba-otp-phone__cc { display: flex; align-items: center; padding: 0 12px; background: #f3f4f6; color: #0f172a; font-weight: 600; border-right: 1px solid #e5e7eb; }
.ba-auth .ba-otp-phone input { border: 0 !important; box-shadow: none !important; border-radius: 0; }
.ba-otp-sent { text-align: center; margin: 0 0 14px; color: #334155; font-size: 14px; }
.ba-otp-sent strong { color: #0f172a; }
.ba-auth .ba-field input.ba-otp-code { text-align: center; font-size: 26px; letter-spacing: .45em; font-weight: 700; height: 58px; padding-left: .45em; }
.ba-otp-links { display: flex; justify-content: space-between; margin-top: 14px; }
.ba-otp-links button { border: 0; background: none; padding: 0; min-height: 0; font-size: 14px; font-weight: 600; color: #0077ff; cursor: pointer; text-transform: none; }
.ba-otp-links button:disabled { color: #9ca3af; cursor: default; font-weight: 500; }
.ba-auth__msg { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 14px; line-height: 1.45; }
.ba-auth__msg.is-ok { background: #f0fdf4; color: #15803d; }
.ba-auth__switch--mode { border-top: 1px solid #e2e8f0; padding-top: 14px; }
#ba-otp-captcha:empty { display: none; }
/* Firebase: Google button, phone ⇄ email */
.ba-auth .ba-auth__google { text-transform: none !important; background: #fff !important; color: #1f2937 !important; box-shadow: 0 1px 2px rgba(15, 23, 42, .06) !important; letter-spacing: 0; border: 1px solid #d1d5db !important; border-radius: 9px !important; height: 50px; width: 100%; }
.ba-auth__google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 1px solid #d1d5db; border-radius: 9px; background: #fff; color: #1f2937; font-size: 15px; font-weight: 600; cursor: pointer; text-transform: none; transition: background .15s, border-color .15s; }
.ba-auth .ba-auth__google:hover { background: #f9fafb !important; border-color: #9ca3af !important; }
.ba-auth__google:disabled { opacity: .7; cursor: default; }
.ba-auth__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #9ca3af; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.ba-auth__or::before, .ba-auth__or::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.ba-auth__otp:not(.is-email) .ba-fb-email, .ba-auth__otp.is-email .ba-fb-phone { display: none; }
.ba-auth__otp:not(.is-email) .ba-fb-to-phone, .ba-auth__otp.is-email .ba-fb-to-email { display: none; }
.ba-auth__otp:not(.is-email-new) .ba-fb-new-only, .ba-auth__otp.is-email-new .ba-fb-old-only { display: none; }
.ba-auth__otp.is-naming .ba-auth__google, .ba-auth__otp.is-naming .ba-auth__or, .ba-auth__otp.is-naming .ba-auth__switch--mode, .ba-auth__otp.is-naming .ba-fb-phone, .ba-auth__otp.is-naming .ba-fb-email { display: none; }
.ba-auth__switch--mode button { border: 0; background: none; padding: 0; min-height: 0; color: #0077ff; font-weight: 600; font-size: 14px; cursor: pointer; text-transform: none; }
/* WhatsApp code button + SMS as the second choice */
.ba-auth .ba-auth__wa, .ba-auth .ba-auth__wa:hover, .ba-auth .ba-auth__wa:focus { display: flex; align-items: center; justify-content: center; gap: 9px; background: #25d366 !important; color: #fff !important; border: 0; }
.ba-auth .ba-auth__wa:hover { filter: brightness(.95); }
.ba-auth .ba-auth__alt, .ba-auth .ba-auth__alt:hover, .ba-auth .ba-auth__alt:focus { margin-top: 10px; background: #fff !important; color: #0f172a !important; border: 1px solid #d1d5db !important; font-weight: 600; }
.ba-auth .ba-auth__alt:hover { border-color: #9ca3af !important; filter: none; }

/* WoodMart styles every <button> as a primary button and forces the login form visible: undo both here. */
body .ba-auth.is-register .ba-auth__form--login, body .ba-auth:not(.is-register) .ba-auth__form--register { display: none !important; }
body .ba-auth .ba-auth__tabs { border-radius: 8px; }
body .ba-auth .ba-auth__tabs button[data-tab] { background: transparent !important; background-color: transparent !important; color: #334155 !important; border: 0 !important; box-shadow: none !important; border-radius: 6px !important; text-transform: none !important; letter-spacing: 0 !important; }
body .ba-auth .ba-auth__tabs button[data-tab][aria-selected="true"] { background: #fff !important; background-color: #fff !important; color: #0f172a !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .12) !important; }
body .ba-auth .ba-auth__switch button, body .ba-auth .ba-auth__switch--mode button { background: none !important; background-color: transparent !important; color: #0077ff !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; box-shadow: none !important; font-weight: 600 !important; text-transform: none !important; }
body .ba-auth .ba-auth__submit { width: 100% !important; min-height: 48px !important; background-color: #0077ff !important; color: #fff !important; border-radius: 6px !important; text-transform: none !important; font-size: 15px !important; }
