/* Sign-in modal */
.alm { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; }
.alm[hidden] { display: none; }
html.alm-open, html.alm-open body { overflow: hidden; }
.alm__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: alm-fade .18s ease-out; }
.alm__panel { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px 28px 26px; border-radius: 20px; background: #fff; color: #1d1d1f; box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28); text-align: right; animation: alm-pop .2s ease-out; font-size: 15px; line-height: 1.6; }
.alm__close { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f2f2f4; color: #1d1d1f; cursor: pointer; }
.alm__close:hover { background: #e8e8ed; }
.alm__close svg, .alm__eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.alm h2 { margin: 0 0 4px; color: #1d1d1f; font-size: 24px; font-weight: 800; line-height: 1.3; }
.alm__lead { margin: 0 0 18px; color: #6e6e73; font-size: 14px; }
.alm__field { display: grid; gap: 6px; margin-bottom: 14px; }
.alm__field > span:first-child { color: #1d1d1f; font-size: 13px; font-weight: 700; }
.alm input[type=text], .alm input[type=password] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; color: #1d1d1f; font: inherit; font-size: 16px; text-align: left; box-shadow: none; }
.alm input:focus { outline: none; border-color: var(--primary, #3563ae); box-shadow: 0 0 0 4px rgba(53, 99, 174, 0.15); }
.alm__pass { position: relative; display: block; }
.alm__pass input { padding-right: 46px !important; }
.alm__eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: #6e6e73; cursor: pointer; }
.alm__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 16px; font-size: 14px; }
.alm__row a, .alm__alt a, .alm__link { color: var(--primary, #3563ae); text-decoration: none; font-weight: 600; }
.alm__row a:hover, .alm__alt a:hover, .alm__link:hover { text-decoration: underline; }
.alm__check { display: inline-flex; align-items: center; gap: 6px; color: #1d1d1f; cursor: pointer; }
.alm__btn { position: relative; width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--primary, #3563ae); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: background-color .15s; }
.alm__btn:hover { background: #2b539a; }
.alm__btn[disabled] { opacity: .7; cursor: progress; }
.alm__btn.is-busy::after { content: ""; position: absolute; top: 50%; left: 18px; width: 16px; height: 16px; margin-top: -8px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: alm-spin .7s linear infinite; }
.alm__link { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; }
.alm__link[disabled] { color: #86868b; cursor: default; text-decoration: none; }
.alm__alt { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #e8e8ed; color: #6e6e73; font-size: 14px; text-align: center; line-height: 2; }
.alm__error, .alm__notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.alm__error { background: #fdf0ee; color: #8e1f13; }
.alm__notice { background: #edf7f1; color: #175c3a; }
.alm__error[hidden], .alm__notice[hidden], .alm__step[hidden] { display: none; }
.alm__code { text-align: center !important; font-size: 26px !important; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.alm :focus-visible { outline: 3px solid rgba(53, 99, 174, .4); outline-offset: 2px; }
@keyframes alm-fade { from { opacity: 0; } }
@keyframes alm-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes alm-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
	.alm { align-items: end; padding: 0; }
	.alm__panel { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); animation: alm-up .22s ease-out; }
	@keyframes alm-up { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .alm__backdrop, .alm__panel { animation: none; } }
.alm a.alm__btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.alm__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.alm__help, .alm__ferr { color: #6e6e73; font-size: 12px; }
.alm__ferr:empty { display: none; }
.alm .has-error input { border-color: #b42318; }
.alm .has-error .alm__ferr { color: #b42318; }
.alm__terms { margin: 0 0 16px; font-size: 14px; align-items: flex-start; }
.alm__terms.has-error { color: #b42318; }
.alm__terms a { color: var(--primary, #3563ae); }
.alm__row--center { justify-content: center; margin: 14px 0 0; }
.alm__alt .alm__link { font-size: inherit; }
@media (max-width: 520px) { .alm__two { grid-template-columns: 1fr; } }
.alm input[type=checkbox] { flex: none; width: 18px !important; height: 18px !important; min-height: 0 !important; margin: 3px 0 0; padding: 0; border-radius: 4px; accent-color: var(--primary, #3563ae); -webkit-appearance: auto; appearance: auto; box-shadow: none; }
.alm__terms { display: flex; gap: 8px; line-height: 1.6; }
.alm__panel:has(.alm__step--wide:not([hidden])) { width: min(560px, 100%); }
.alm__field em { color: #86868b; font-style: normal; font-weight: 400; font-size: 12px; }
.alm input[type=tel], .alm input[type=date] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; color: #1d1d1f; font: inherit; font-size: 16px; box-shadow: none; }
.alm input[type=tel] { text-align: left; }
.alm__steps { margin: 4px 0 18px; padding: 12px 34px 12px 14px; border-radius: 12px; background: #f5f5f7; color: #1d1d1f; font-size: 13.5px; line-height: 1.9; }
