/* Окно входа по SMS — светлое, по макету Figma «Личный кабинет» → login (795-2475) */
html.auth-modal-open, body.auth-modal-open { overflow: hidden; }
.auth-modal { color-scheme: light; position: fixed; inset: 0; z-index: 100100; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Onest', Arial, sans-serif; color: #102631; }
.auth-modal[hidden] { display: none; }
.auth-modal *, .auth-modal *::before, .auth-modal *::after { box-sizing: border-box; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 38, 49, .45); }
.auth-modal__dialog { position: relative; width: 100%; max-width: 394px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(16, 38, 49, .2); }
.auth-modal__close { position: absolute; top: 24px; right: 24px; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.auth-modal__close::before, .auth-modal__close::after { content: ''; position: absolute; left: 3px; right: 3px; top: 11px; height: 2px; border-radius: 1px; background: #B8BCC5; transform: rotate(45deg); }
.auth-modal__close::after { transform: rotate(-45deg); }
.auth-modal__close:hover::before, .auth-modal__close:hover::after { background: #707070; }
.auth-modal__panel[hidden] { display: none; }
.auth-modal .auth-modal__title { margin: 0 32px 16px 0; font-family: 'SONGER SemiExpanded', 'Onest', Arial, sans-serif; font-weight: 900; font-size: 24px; line-height: 29px; letter-spacing: 0; text-transform: uppercase; color: #102631; }
.auth-modal__subtitle { margin: 0 0 24px; font-size: 18px; line-height: 25px; color: #102631; }
.auth-modal__form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.auth-modal__field { display: flex; flex-direction: column; gap: 6px; }
.auth-modal .auth-modal__input { width: 100%; height: 48px; margin: 0; padding: 0 20px; border: 1px solid #ECECF0; border-radius: 8px; background: #F5F5F7; font: 400 18px 'Onest', Arial, sans-serif; color: #102631; outline: none; box-shadow: none; transition: border-color .15s, background .15s; }
.auth-modal .auth-modal__input::placeholder { color: #444; opacity: 1; }
.auth-modal .auth-modal__input:focus { border-color: #3033FF; background: #fff; }
.auth-modal .auth-modal__input.is-invalid { border-color: #E5484D; }
.auth-modal__error { font-size: 14px; line-height: 18px; color: #C62828; }
.auth-modal__error[hidden] { display: none; }
.auth-modal__btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; padding: 0 24px; border: 0; border-radius: 8px; font: 600 18px 'Onest', Arial, sans-serif; cursor: pointer; transition: background .15s, opacity .15s; }
.auth-modal__btn--primary { background: #3033FF; color: #fff; }
.auth-modal__btn--primary:hover { background: #2528d9; }
.auth-modal__btn--gray { background: #F5F5F7; color: #102631; }
.auth-modal__btn--gray:hover { background: #ECECF0; }
.auth-modal__btn:disabled { opacity: .6; cursor: default; }
.auth-modal__resend { padding: 0; border: 0; background: none; font: 400 14px/18px 'Onest', Arial, sans-serif; color: #3033FF; text-align: center; cursor: pointer; }
.auth-modal__resend:disabled { color: #102631; cursor: default; }
.auth-modal__resend[hidden], .auth-modal__timer[hidden] { display: none; }
.auth-modal__timer { margin: 0; text-align: center; font-size: 14px; }
.auth-modal__check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 0; font-size: 14px; line-height: 18px; color: #102631; cursor: pointer; }
.auth-modal__check input { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; border: 1.5px solid #3033FF; border-radius: 3px; display: grid; place-items: center; cursor: pointer; background: #fff; }
.auth-modal__check input:checked::before { content: ''; width: 10px; height: 6px; border-left: 2px solid #3033FF; border-bottom: 2px solid #3033FF; transform: translateY(-2px) rotate(-45deg); }
.auth-modal__check a { color: #3033FF; text-decoration: none; }
.auth-modal__check a:hover { text-decoration: underline; }

@media (max-width: 767px) {
	.auth-modal { align-items: flex-end; padding: 0; }
	.auth-modal__dialog { max-width: none; border-radius: 24px 24px 0 0; padding: 32px 16px 24px; max-height: 92vh; }
	.auth-modal .auth-modal__title { font-size: 20px; line-height: 22px; }
	.auth-modal__subtitle { font-size: 14px; line-height: 18px; margin-bottom: 20px; }
	.auth-modal .auth-modal__input { height: 44px; font-size: 16px; }
	.auth-modal__btn { height: 44px; font-size: 16px; }
	.auth-modal__check { font-size: 12px; line-height: 16px; }
}
