/*
 * Signing in and passwords (inc/auth-pages.php): the sign-in page, «رمزت یادت رفته؟», «ایمیل رو فرستادیم», «رمز تازه»
 * and the sign-in window every page opens for visitors (.sadpop in footer.php). Every rule starts at .ya-auth-wrap,
 * .ya-auth or .sadpop, so nothing here reaches the about page, which uses other ya- classes.
 */
.ya-auth-page .small-hero:not(.sadoo-countdown-banner) { display: none; }
.ya-auth-wrap { position: relative; isolation: isolate; padding: 26px 0 70px; background: var(--ye-surface); color: var(--ye-ink); }
.ya-auth-wrap::before { content: ""; position: absolute; top: 0; right: 0; left: 0; z-index: -1; height: 520px; background: linear-gradient(180deg, var(--ye-tint) 0%, rgb(var(--ye-surface-rgb) / 0) 100%); pointer-events: none; }
.ya-auth-wrap *, .ya-auth-wrap *::before, .ya-auth-wrap *::after, .sadpop *, .sadpop *::before, .sadpop *::after { box-sizing: border-box; }
.ya-auth-wrap .woocommerce { max-width: 1060px; margin: 0 auto; }

/* Messages of WooCommerce (wrong password, email sent…) */
.ya-auth-wrap .woocommerce-error,
.ya-auth-wrap .woocommerce-message,
.ya-auth-wrap .woocommerce-info,
.sadpop .woocommerce-error,
.sadpop .woocommerce-message,
.sadpop .woocommerce-info { max-width: 1060px; margin: 0 auto 16px; padding: 14px 52px 14px 18px; border: 1px solid var(--ye-border); border-top: 0; border-radius: 16px; background: var(--ye-info-tint); color: var(--ye-ink); font-size: 15px; line-height: 1.9; list-style: none; box-shadow: none; }
.ya-auth-wrap .woocommerce-error, .sadpop .woocommerce-error { border-color: var(--ye-sale-line); background: var(--ye-danger-tint); }
.ya-auth-wrap .woocommerce-message, .sadpop .woocommerce-message { border-color: var(--ye-green-line); background: var(--ye-green-tint); }
.ya-auth-wrap .woocommerce-error::before, .ya-auth-wrap .woocommerce-message::before, .ya-auth-wrap .woocommerce-info::before,
.sadpop .woocommerce-error::before, .sadpop .woocommerce-message::before, .sadpop .woocommerce-info::before { top: 15px; right: 18px; left: auto; }
.ya-auth-wrap .woocommerce-error::before, .sadpop .woocommerce-error::before { color: var(--ye-danger); }
.ya-auth-wrap .woocommerce-message::before, .sadpop .woocommerce-message::before { color: var(--ye-green); }
.ya-auth-wrap .woocommerce-info::before, .sadpop .woocommerce-info::before { color: var(--ye-info); }
.ya-auth-wrap .woocommerce-error li, .sadpop .woocommerce-error li { margin: 0; }
.ya-auth-wrap .woocommerce-error a, .ya-auth-wrap .woocommerce-message a, .ya-auth-wrap .woocommerce-info a { color: var(--ye-accent); font-weight: var(--ye-w-bold); }

/* ---------- The pieces every form shares ---------- */
.ya-auth { max-width: 1060px; margin: 0 auto; color: var(--ye-ink); }
.ya-auth a, .ya-auth a:hover, .ya-auth a:focus { text-decoration: none; }
.ya-auth .ya-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--ye-accent); font-size: 14px; font-weight: var(--ye-w-bold); }
.ya-auth .ya-title { margin: 0; color: var(--ye-ink); font-size: 30px; font-weight: var(--ye-w-display); line-height: 1.55; }
.ya-auth .ya-lead { margin: 8px 0 22px; color: var(--ye-muted); font-size: 16px; line-height: 2; }
/* WooCommerce draws a grey box around its sign-in forms (.woocommerce form.login); here the card is the box. */
.ya-auth .ya-card form.ya-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ya-auth .ya-form .form-row,
.ya-auth .ya-field { float: none; width: 100%; margin: 0 0 16px; padding: 0; }
.ya-auth .ya-form label,
.sadpop .inner form label { display: block; margin: 0 0 7px; color: var(--ye-ink); font-size: 14.5px; font-weight: var(--ye-w-bold); line-height: 1.7; }
.ya-auth .ya-form .required,
.sadpop .inner form .required { color: var(--ye-sale); text-decoration: none; border: 0; }
.ya-auth .ya-form .form-row .input-text,
.sadpop .inner form .form-row .input-text { display: block; width: 100%; min-height: 54px; margin: 0; padding: 10px 16px; border: 1px solid var(--ye-border-strong); border-radius: 14px; background: var(--ye-surface); color: var(--ye-ink); font: inherit; font-size: 16px; line-height: 1.6; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.ya-auth .ya-form .input-text::placeholder,
.sadpop .inner form .input-text::placeholder { color: var(--ye-faint); }
.ya-auth .ya-form .form-row .input-text:focus,
.sadpop .inner form .form-row .input-text:focus { border-color: var(--ye-accent); outline: none; box-shadow: 0 0 0 4px rgba(111, 63, 192, .16); }
.ya-auth .ya-form input[dir="ltr"],
.sadpop .inner form input[dir="ltr"] { text-align: left; }
/* WooCommerce's eye button in the password fields */
.ya-auth .password-input,
.sadpop .password-input { position: relative; display: block; }
.ya-auth .ya-form .password-input .input-text,
.sadpop .inner form .password-input .input-text { padding-left: 52px; }
.ya-auth .show-password-input,
.sadpop .show-password-input { position: absolute; top: 50%; right: auto; left: 8px; display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ye-muted); transform: translateY(-50%); cursor: pointer; }
.ya-auth .show-password-input:hover,
.sadpop .show-password-input:hover { background: var(--ye-tint); color: var(--ye-deep); }
.ya-auth .show-password-input::after,
.sadpop .show-password-input::after { margin: 0; font-size: 16px; }
/* Password strength on «رمز تازه» */
.ya-auth .woocommerce-password-strength { margin: 8px 0 0; padding: 6px 12px; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: var(--ye-w-bold); text-align: right; }
.ya-auth .woocommerce-password-strength.short, .ya-auth .woocommerce-password-strength.bad { background: var(--ye-danger-tint); color: var(--ye-danger); }
.ya-auth .woocommerce-password-strength.good { background: var(--ye-gold-tint); color: var(--ye-gold-ink); }
.ya-auth .woocommerce-password-strength.strong { background: var(--ye-green-tint); color: var(--ye-green); }
.ya-auth .woocommerce-password-hint { display: block; margin-top: 6px; color: var(--ye-muted); font-size: 13px; line-height: 1.8; }

/* Buttons */
.ya-auth .ya-btn, .ya-auth .ya-btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 22px; border: 1px solid transparent; border-radius: 14px; font: inherit; font-size: 15.5px; font-weight: var(--ye-w-bold); line-height: 1.4; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ya-auth .ya-btn--primary,
.ya-auth .ya-btn--primary:visited,
.ya-auth button.ya-btn--primary.button { width: 100%; min-height: 56px; margin: 0; border: 0; border-radius: 14px; background: var(--ye-fill-accent); color: #fff; font-size: 16px; box-shadow: 0 12px 24px rgba(87, 40, 159, .22); }
.ya-auth button.ya-btn--primary.button { display: flex; }
.ya-auth .ya-btn--primary:hover,
.ya-auth .ya-btn--primary:focus,
.ya-auth button.ya-btn--primary.button:hover { background: var(--ye-fill-accent-strong); color: #fff; }
/* The night theme greys WooCommerce's buttons (ye-dark.css); these stay the site's purple. */
:root[data-theme="dark"] .ya-auth button.ya-btn--primary.button:not(.alt) { background-color: var(--ye-fill-accent); color: #fff; }
:root[data-theme="dark"] .ya-auth button.ya-btn--primary.button:not(.alt):hover { background-color: var(--ye-fill-accent-strong); color: #fff; }
.ya-auth .ya-btn--soft, .ya-auth .ya-btn--soft:visited { background: var(--ye-tint-strong); color: var(--ye-deep); }
.ya-auth .ya-btn--soft:hover, .ya-auth .ya-btn--soft:focus { background: var(--ye-border-accent); color: var(--ye-deep); }
.ya-auth .ya-btn--ghost, .ya-auth .ya-btn--ghost:visited { border-color: var(--ye-border-strong); background: var(--ye-surface); color: var(--ye-ink); }
.ya-auth .ya-btn--ghost:hover, .ya-auth .ya-btn--ghost:focus { border-color: var(--ye-border-accent); background: var(--ye-tint); color: var(--ye-deep); }
.ya-auth .ya-actions { margin: 6px 0 0; }
.ya-auth .ya-link, .ya-auth .ya-link:visited { display: inline-flex; align-items: center; gap: 7px; color: var(--ye-accent); font-weight: var(--ye-w-bold); }
.ya-auth .ya-link:hover, .ya-auth .ya-link:focus { color: var(--ye-deep); }
.ya-auth a:focus-visible, .ya-auth button:focus-visible, .sadpop a:focus-visible, .sadpop button:focus-visible { outline: 3px solid var(--ye-accent); outline-offset: 3px; }

.ya-auth .ya-back { margin: 18px 0 0; text-align: center; }
.ya-auth .ya-back a, .ya-auth .ya-back a:visited { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ye-muted); font-size: 15px; font-weight: var(--ye-w-bold); }
.ya-auth .ya-back a:hover { color: var(--ye-deep); }
.ya-auth .ya-note { display: flex; gap: 12px; align-items: flex-start; margin: -6px 0 20px; padding: 14px 16px; border: 1px solid var(--ye-border); border-radius: 14px; background: var(--ye-info-tint); color: var(--ye-text); font-size: 14.5px; line-height: 1.9; }
.ya-auth .ya-note i { margin-top: 4px; color: var(--ye-info); font-size: 18px; }
.ya-auth .ya-note p { margin: 0; }
.ya-auth .ya-note a { color: var(--ye-accent); font-weight: var(--ye-w-bold); }
.ya-auth .ya-small { margin: 14px 0 0; color: var(--ye-muted); font-size: 13.5px; line-height: 1.9; }

/* The London scenes (sadoo_site_scene), as in site-pages.css: the day or the night street, after the theme. */
.ya-auth .ysp-scene { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: linear-gradient(180deg, #d9e6f6 0%, #eaf1fa 100%); }
.ya-auth .ysp-scene__set { position: absolute; inset: 0; display: block; }
.ya-auth .ysp-scene__set--night { display: none; background: var(--ye-night); }
.ya-auth .ysp-scene__layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; }
:root[data-theme="dark"] .ya-auth .ysp-scene { background: var(--ye-night); }
:root[data-theme="dark"] .ya-auth .ysp-scene__set--day { display: none; }
:root[data-theme="dark"] .ya-auth .ysp-scene__set--night { display: block; }

/* ---------- The three password pages: the form beside its steps ---------- */
.ya-auth--lost > .ya-card,
.ya-auth--sent > .ya-card,
.ya-auth--reset > .ya-card { display: grid; grid-template-columns: minmax(0, 1fr) 360px; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 28px; background: var(--ye-surface); box-shadow: var(--ye-shadow); }
.ya-auth .ya-card__main { min-width: 0; padding: 40px 44px 34px; }
.ya-auth .ya-side { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 32px 28px 0; overflow: hidden; background: linear-gradient(165deg, var(--ye-fill-deep) 0%, var(--ye-fill-accent) 100%); color: #fff; }
.ya-auth .ya-side__title { margin: 0; color: #fff; font-size: 18px; font-weight: var(--ye-w-heading); line-height: 1.7; }
.ya-auth .ya-steps { position: relative; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ya-auth .ya-steps__item { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.ya-auth .ya-steps__item:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: 17px; bottom: -14px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.ya-auth .ya-steps__num { position: relative; z-index: 1; display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 50%; color: #fff; font-size: 15px; font-weight: var(--ye-w-bold); }
.ya-auth .ya-steps__item.is-done .ya-steps__num { border-color: transparent; background: var(--ye-buy); }
.ya-auth .ya-steps__item.is-now .ya-steps__num { border-color: transparent; background: var(--ye-sun); color: var(--ye-sun-ink); box-shadow: 0 0 0 6px rgba(245, 200, 98, .22); }
.ya-auth .ya-steps__text { display: flex; flex-direction: column; padding-top: 4px; }
.ya-auth .ya-steps__text strong { color: #fff; font-size: 15.5px; font-weight: var(--ye-w-bold); line-height: 1.7; }
.ya-auth .ya-steps__text small { color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.8; }
.ya-auth .ya-steps__item:not(.is-now):not(.is-done) .ya-steps__text { opacity: .72; }
.ya-auth .ya-side__scene { margin: auto -28px 0; width: calc(100% + 56px); border-radius: 0; background: transparent; }
.ya-auth .ya-side__scene .ysp-scene__set--night { background: transparent; }

/* «ایمیل رو فرستادیم» */
.ya-auth .ya-badge { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px; border-radius: 22px; background: var(--ye-green-tint); color: var(--ye-green); font-size: 28px; }
.ya-auth .ya-check { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.ya-auth .ya-check li { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ye-text); font-size: 15px; line-height: 1.9; }
.ya-auth .ya-check i { display: inline-grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; background: var(--ye-green-tint); color: var(--ye-green); font-size: 12px; }
.ya-auth .ya-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ya-auth .ya-row .ya-btn { flex: 1 1 200px; }

/* Two short answers under the card */
.ya-auth .ya-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ya-auth .ya-tip { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid var(--ye-border); border-radius: 20px; background: var(--ye-surface); }
.ya-auth .ya-tip__icon { display: inline-grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; font-size: 20px; }
.ya-auth .ya-tip__icon--google { border: 1px solid var(--ye-border); background: var(--ye-surface); color: #4285f4; }
.ya-auth .ya-tip__icon--help { background: var(--ye-gold-tint); color: var(--ye-gold-ink); }
.ya-auth .ya-tip strong { display: block; color: var(--ye-ink); font-size: 15.5px; line-height: 1.7; }
.ya-auth .ya-tip p { margin: 2px 0 8px; color: var(--ye-muted); font-size: 14px; line-height: 1.9; }
.ya-auth .ya-tip .ya-link { min-height: 36px; font-size: 14.5px; }

/* ---------- The sign-in page: «ورود» and «عضویت» side by side, each under its lilac head and classroom picture ---------- */
.ya-auth--login,
.sadpop { --ya-lilac: #fae9ff; --ya-lilac-head: #ece0ff; --ya-lilac-box: #ddd0f0; }
:root[data-theme="dark"] .ya-auth--login,
:root[data-theme="dark"] .sadpop { --ya-lilac: #1f1931; --ya-lilac-head: #2d2541; --ya-lilac-box: #2a2240; }
.ya-auth .ya-head { margin: 6px auto 26px; text-align: center; }
.ya-auth--login .ya-title { font-size: 30px; }
.ya-auth .ya-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ya-auth--login .ya-card { min-width: 0; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 24px; background: var(--ye-surface); box-shadow: var(--ye-shadow); }
.ya-auth .ya-card__head { padding: 30px 0 0; background: var(--ya-lilac-box); text-align: center; }
.ya-auth .ya-card__title { margin: 0 24px; color: var(--ye-ink); font-size: 26px; font-weight: var(--ye-w-display); line-height: 1.5; }
.ya-auth .ya-card__sub { margin: 2px 24px 16px; color: var(--ye-text); font-size: 16px; line-height: 1.9; }
.ya-auth .ya-card__pic { display: block; width: 100%; max-width: none; height: auto; }
.ya-auth .ya-card__body { padding: 26px 30px 30px; }
.ya-auth .ya-forgot { margin: -4px 0 14px; }
.ya-auth .ya-forgot a, .ya-auth .ya-forgot a:visited { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--ye-accent); font-size: 14.5px; font-weight: var(--ye-w-bold); }
.ya-auth .ya-forgot a:hover { color: var(--ye-deep); }
.ya-auth .ya-hint { margin: 10px 0 0; color: var(--ye-muted); font-size: 13.5px; line-height: 1.9; text-align: center; }
/* The guide's strip under the forms (inc/guide-card.php). */
.ya-auth .ygc { max-width: 760px; margin: 20px auto 0; }
.ya-auth .ya-help { margin: 24px 0 0; color: var(--ye-muted); font-size: 15px; line-height: 2; text-align: center; }
.ya-auth .ya-help > .fa { margin-left: 8px; color: var(--ye-gold-ink); font-size: 17px; vertical-align: -1px; }
.ya-auth .ya-help .ya-link { display: inline; white-space: nowrap; }
.ya-auth .ya-help .ya-link .fa { margin-left: 5px; }
.ya-auth .woocommerce-privacy-policy-text { display: none; }

.ya-auth .ya-or,
.sadpop .sadpop__or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--ye-faint); font-size: 13.5px; font-weight: var(--ye-w-bold); }
.ya-auth .ya-or::before, .ya-auth .ya-or::after,
.sadpop .sadpop__or::before, .sadpop .sadpop__or::after { content: ""; flex: 1; height: 1px; background: var(--ye-border); }
/* «ورود با گوگل» as it always was: a purple outlined pill with purple words and the purple G. */
.ya-auth .social-login-btn,
.sadpop .social-login-btn { width: 100%; margin: 0; padding: 0; border: 2px solid var(--ye-accent); border-radius: 40px; background: transparent; color: var(--ye-accent); font-size: 15px; font-weight: var(--ye-w-bold); transition: background .15s ease; }
.ya-auth .social-login-btn:hover,
.sadpop .social-login-btn:hover { background: var(--ye-tint); }
/* The Google plugin draws its row as a narrow inline grid (div.nsl-container-block[data-align] …); the old inline style made it full width. */
.ya-auth .social-login-btn .nsl-container,
.sadpop .social-login-btn .nsl-container { display: block; width: 100%; text-align: center; }
.ya-auth .social-login-btn .nsl-container .nsl-container-buttons,
.sadpop .social-login-btn .nsl-container .nsl-container-buttons { display: block !important; width: 100%; padding: 0; }
.ya-auth .social-login-btn a,
.sadpop .social-login-btn a { display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 0 !important; border-radius: 40px; color: var(--ye-accent) !important; text-align: center; }
.ya-auth .social-login-btn .nsl-button-label-container,
.sadpop .social-login-btn .nsl-button-label-container { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.ya-auth .social-login-btn i,
.sadpop .social-login-btn i { margin: 0; color: var(--ye-accent); font-size: 17px; }

/* ---------- The sign-in window (footer.php): Yalda on top, two cards on the lilac classroom, a dark veil behind ---------- */
.sadpop { background: rgba(10, 8, 18, .8); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.sadpop.active { display: flex; overflow-y: auto; padding: 66px 16px 32px; overscroll-behavior: contain; }
.sadpop .inner,
.sadpop.active .inner { position: relative; top: auto; right: auto; left: auto; width: 840px; max-width: 100%; max-height: none; margin: auto; padding: 56px 36px 112px; overflow: visible; border: 0; border-top: 3px solid var(--ye-fill-accent); border-radius: 26px; background: var(--ya-lilac) url(../../img/svg/banner-login.svg) center bottom / 100% auto no-repeat; color: var(--ye-ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); opacity: 1; transform: none; }
.sadpop .inner .headIcon,
.sadpop.active .inner .headIcon { position: absolute; top: -46px; right: 50%; display: block; width: 88px; height: 88px; margin: 0 -44px 0 0; padding: 0; border: 4px solid var(--ya-lilac); border-radius: 50%; background: var(--ye-surface); box-shadow: 0 10px 24px rgba(41, 20, 80, .28); object-fit: cover; }
.sadpop .sadpop__close { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(var(--ye-surface-rgb) / .85); color: var(--ye-muted); font-size: 17px; cursor: pointer; box-shadow: var(--ye-shadow-sm); transition: background .15s ease, color .15s ease; }
.sadpop .sadpop__close:hover, .sadpop .sadpop__close:focus { background: var(--ye-surface); color: var(--ye-deep); }
.sadpop .pop-panel { margin: 0; }
.sadpop .col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; margin: 0; }
.sadpop .col2-set::before, .sadpop .col2-set::after { display: none; }
.sadpop .col2-set .col-1,
.sadpop .col2-set .col-2 { float: none; width: auto; max-width: none; margin: 0; padding: 0; }
/* «ورود» on the left as before, so the teacher at the board stays in sight under the shorter «عضویت». */
.sadpop .col2-set .col-1 { order: 2; }
.sadpop .inner form.woocommerce-form { margin: 0 !important; padding: 0 22px 20px; overflow: hidden; border: 0; border-radius: 18px; background: var(--ye-surface); box-shadow: 0 12px 30px rgba(64, 28, 120, .16); text-align: right; }
.sadpop .inner form .h2 { margin: 0 -22px 18px; padding: 13px 16px; border: 0; border-bottom: 2px solid var(--ye-fill-accent); border-radius: 0; background: var(--ya-lilac-head); color: var(--ye-deep); font-size: 20px; font-weight: var(--ye-w-heading); line-height: 1.6; text-align: center; }
.sadpop .inner form .form-row { float: none; width: 100%; margin: 0 0 12px; padding: 0; }
.sadpop .inner form label { margin-bottom: 6px; font-size: 14px; }
.sadpop .inner form .form-row .input-text { min-height: 48px; border-radius: 12px; }
.sadpop .inner form button.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin: 2px 0 0; padding: 8px 20px; border: 0; border-radius: 12px; background: var(--ye-fill-accent); color: #fff; font: inherit; font-size: 16px; font-weight: var(--ye-w-bold); box-shadow: 0 10px 22px rgba(87, 40, 159, .22); transition: background .15s ease; }
.sadpop .inner form button.button:hover, .sadpop .inner form button.button:focus { background: var(--ye-fill-accent-strong); color: #fff; }
:root[data-theme="dark"] .sadpop .inner form button.button:not(.alt) { background-color: var(--ye-fill-accent); color: #fff; }
:root[data-theme="dark"] .sadpop .inner form button.button:not(.alt):hover { background-color: var(--ye-fill-accent-strong); color: #fff; }
.sadpop .lost_password { margin: -2px 0 12px; }
.sadpop .lost_password a, .sadpop .lost_password a:visited { display: inline-flex; align-items: center; gap: 7px; color: var(--ye-accent); font-size: 14px; font-weight: var(--ye-w-bold); text-decoration: none; }
.sadpop .lost_password a:hover { color: var(--ye-deep); }
.sadpop .sadpop__or { margin: 12px 0 10px; }
.sadpop .sadpop__help { margin: 12px 0 0; color: var(--ye-muted); font-size: 13.5px; line-height: 1.9; text-align: center; }
.sadpop .sadpop__help a, .sadpop .sadpop__help a:visited { color: var(--ye-accent); font-weight: var(--ye-w-bold); text-decoration: none; }
.sadpop .sadpop__help .sadpop__talk i { margin-left: 5px; }
.sadpop .sadpop__help a:hover { color: var(--ye-deep); }
/* Phones: one form at a time behind two tabs */
.sadpop .logreg-tabs { display: flex; gap: 4px; height: auto; margin: 0 0 14px; padding: 5px; border: 0; border-radius: 16px; background: rgb(var(--ye-surface-rgb) / .75); box-shadow: var(--ye-shadow-sm); }
.sadpop .logreg-tabs button { float: none; flex: 1; width: auto; height: 44px; margin: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ye-muted); font: inherit; font-size: 15.5px; font-weight: var(--ye-w-bold); line-height: 44px; }
.sadpop .logreg-tabs button.active { background: var(--ye-fill-accent); color: #fff; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 991px) {
	.ya-auth--lost > .ya-card,
	.ya-auth--sent > .ya-card,
	.ya-auth--reset > .ya-card { grid-template-columns: minmax(0, 1fr); }
	.ya-auth .ya-side { order: -1; padding: 20px 22px 0; }
	.ya-auth .ya-side__title { display: none; }
	.ya-auth .ya-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 18px; }
	.ya-auth .ya-steps__item { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
	.ya-auth .ya-steps__item:not(:last-child)::after { top: 17px; right: calc(50% + 24px); bottom: auto; left: calc(-50% + 14px); width: auto; height: 2px; }
	.ya-auth .ya-steps__text { padding-top: 0; }
	.ya-auth .ya-steps__text small { display: none; }
	.ya-auth .ya-steps__text strong { font-size: 13.5px; }
	.ya-auth .ya-side__scene { display: none; }
	.ya-auth .ya-pair { grid-template-columns: minmax(0, 1fr); }
	.sadpop.active { padding: 48px 12px 24px; }
	.sadpop .col2-set { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.sadpop .col2-set .col-1 { order: 0; }
	.sadpop .inner,
	.sadpop.active .inner { padding: 60px 16px calc(min(840px, 100vw - 24px) / 4 + 6px); border-radius: 22px; }
	.sadpop .inner .headIcon,
	.sadpop.active .inner .headIcon { top: -34px; width: 66px; height: 66px; margin-right: -33px; border-width: 3px; }
	.sadpop .sadpop__close { top: 10px; left: 10px; }
}
@media (max-width: 767px) {
	.ya-auth-wrap { padding: 14px 0 48px; }
	.ya-auth .ya-card__main { padding: 24px 18px 22px; }
	.ya-auth .ya-title { font-size: 24px; line-height: 1.6; }
	.ya-auth .ya-lead { margin-bottom: 18px; font-size: 15px; }
	.ya-auth .ya-side { padding: 16px 12px 0; }
	.ya-auth--lost > .ya-card, .ya-auth--sent > .ya-card, .ya-auth--reset > .ya-card { border-radius: 22px; }
	.ya-auth .ya-tips { grid-template-columns: minmax(0, 1fr); }
	.ya-auth .ya-tip { padding: 16px; }
	.ya-auth .ya-card__head { padding-top: 22px; }
	.ya-auth .ya-card__title { font-size: 23px; }
	.ya-auth .ya-card__sub { margin-bottom: 10px; font-size: 15px; }
	.ya-auth .ya-card__body { padding: 20px 18px 22px; }
	.ya-auth .ya-head { margin-bottom: 16px; }
	.ya-auth--login .ya-title { font-size: 24px; }
	.ya-auth .ya-help { font-size: 14.5px; }
	.sadpop .inner form.woocommerce-form { padding: 0 16px 18px; }
	.sadpop .inner form .h2 { margin: 0 -16px 16px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.sadpop .sadpop__close { transition: none; }
}
