.auth-wrap { max-width: 1260px; margin: auto; padding: calc(74px + 36px) 5.5% 72px; }
body.admin-bar .auth-wrap { padding-top: calc(74px + 32px + 36px); }
.auth-shell { display: grid; grid-template-columns: 1.03fr 1fr; min-height: 590px; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.auth-form { padding: 43px 48px; display: flex; flex-direction: column; align-items: stretch; }
.auth-form h1 { font-size: 35px; letter-spacing: -1px; margin-bottom: 12px; color: var(--ink); }
.auth-form > p { font-size: 14px; line-height: 1.65; margin-bottom: 27px; color: var(--muted); }
.field { font-size: 13px; color: var(--ink); }
.phone-field { display: flex; align-items: center; border: 2px solid #C9BFB8; border-radius: 8px; background: var(--paper); margin-top: 8px; height: 55px; box-sizing: border-box; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.phone-field:focus-within { border-color: var(--deep); }
.phone-field span { border-right: 1px solid var(--line); padding: 0 16px; font-size: 16px; flex-shrink: 0; color: var(--ink); }
.phone-field input { border: 0 !important; outline: none !important; box-shadow: none !important; margin: 0; background: none; min-width: 0; padding: 14px 13px; font-size: 16px; letter-spacing: 1px; width: 100%; color: var(--ink); }
.phone-field input:focus, .phone-field input:focus-visible { outline: none !important; border: 0 !important; box-shadow: none !important; }
.auth-form .btn { width: 100%; margin-top: 9px; }
.help { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 33px; font-size: 12px; color: var(--muted); }
.help strong { display: block; color: var(--ink); font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.help a { color: var(--deep); font-weight: 500; }
.auth-panel { background: var(--ink); color: var(--paper); padding: 67px 45px; position: relative; }
.auth-panel .eyebrow { color: #C8BAB2; margin-bottom: 12px; }
.auth-panel h2 { font-size: 32px; line-height: 1.23; letter-spacing: -.6px; max-width: 350px; margin: 0 0 19px; color: var(--paper); }
.auth-panel > p { color: #D5C9C1; font-size: 14px; line-height: 1.7; max-width: 340px; margin-bottom: 0; }
.inside { list-style: none; padding: 0; margin: 37px 0 0; }
.inside li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.inside .mark { width: 30px; height: 30px; border: 1px solid #65534B; border-radius: 8px; display: grid; place-items: center; font-size: 14px; color: #F7B7A8; flex-shrink: 0; }
.inside strong { display: block; font-size: 14px; font-weight: 500; color: var(--paper); }
.inside p { color: #C8BAB2; font-size: 12px; margin: 5px 0 0; }
.panel-foot { border-top: 1px solid #40312A; padding-top: 21px; margin-top: 35px; color: #C8BAB2; font-size: 12px; }
.otp-meta { font-size: 13px; line-height: 1.7; margin-bottom: 26px; color: var(--muted); }
.otp-meta strong { display: block; color: var(--ink); font-size: 15px; letter-spacing: 1px; margin: 4px 0; }
.change-number { display: inline-block; background: none; border: 0; padding: 0; font-size: 12px; color: var(--deep); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.otp-label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 10px; color: var(--ink); }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.otp-boxes input { margin: 0; text-align: center; font-size: 24px; font-weight: 500; min-width: 0; padding: 10px 0; height: 57px; background: var(--paper); border: 1px solid #C9BFB8; border-radius: 8px; color: var(--ink); }
.resend-row { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; margin: 16px 0 17px; gap: 12px; }
.resend-row button { border: 0; padding: 0; background: none; color: var(--deep); font-size: 12px; text-decoration: underline; cursor: pointer; }
.resend-row button:disabled { color: var(--muted); text-decoration: none; cursor: not-allowed; }
.resend-row strong { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.wrong .otp-boxes input { border-color: var(--deep); background: #FDEAE440; }
.inline-error { color: var(--deep); font-size: 12px; line-height: 1.6; margin: 12px 0 0; display: flex; align-items: flex-start; gap: 8px; }
.error-mark { border: 1px solid var(--deep); border-radius: 50%; height: 17px; width: 17px; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; margin-top: 2px; }
.privacy { font-size: 11px !important; margin-top: 16px !important; margin-bottom: 0 !important; color: var(--muted); }
.privacy a { text-decoration: underline; text-underline-offset: 3px; color: var(--deep); }
.wrong .auth-form { padding-top: 35px; padding-bottom: 35px; }

@media(max-width: 760px) {
	.auth-wrap { padding: calc(60px + 24px) 20px 40px; }
	.auth-shell { display: flex; flex-direction: column; border-radius: 12px; }
	.auth-form, .wrong .auth-form { padding: 25px 22px 28px; }
	.auth-form h1 { font-size: 28px; letter-spacing: -.6px; }
	.auth-form > p { font-size: 13px; margin-bottom: 22px; }
	.auth-form .btn { margin-top: 8px; }
	.auth-panel { padding: 33px 25px; }
	.auth-panel h2 { font-size: 27px; }
	.auth-panel > p { font-size: 13px; }
	.inside { margin-top: 27px; }
	.inside li { gap: 13px; margin-bottom: 22px; }
	.inside strong { font-size: 13px; }
	.inside p { font-size: 12px; }
	.panel-foot { font-size: 11px; padding-top: 18px; margin-top: 28px; }
	.otp-boxes { gap: 6px; }
	.otp-boxes input { height: 47px; font-size: 22px; border-radius: 7px; }
	.otp-meta { font-size: 12px; margin-bottom: 23px; }
	.resend-row { font-size: 11px; }
	.resend-row button { font-size: 11px; }
	.help { margin-top: 27px; padding-top: 19px; font-size: 12px; }
	.inline-error { font-size: 12px; }
	.privacy { font-size: 10px !important; }
}
@media (max-width: 782px) {
	body.admin-bar .auth-wrap { padding-top: calc(60px + 46px + 24px); }
}
@media (max-height: 500px) and (orientation: landscape) {
	.auth-wrap { padding-top: calc(44px + 14px) !important; padding-bottom: 24px !important; min-height: auto !important; }
	body.admin-bar .auth-wrap { padding-top: calc(44px + 32px + 14px) !important; }
	.auth-shell { display: grid !important; grid-template-columns: 1.1fr 1fr !important; min-height: auto !important; border-radius: 12px !important; }
	.auth-form { padding: 18px 22px !important; }
	.auth-form h1 { font-size: 20px !important; margin-bottom: 4px !important; letter-spacing: -0.5px !important; }
	.auth-form > p { font-size: 11.5px !important; margin-bottom: 12px !important; line-height: 1.4 !important; }
	.field { font-size: 11.5px !important; }
	.phone-field { height: 40px !important; margin-top: 6px !important; }
	.phone-field span { font-size: 13px !important; padding: 0 10px !important; }
	.phone-field input { font-size: 13px !important; padding: 8px 10px !important; }
	.auth-form .btn { min-height: 38px !important; padding: 8px 14px !important; font-size: 12px !important; margin-top: 8px !important; }
	.auth-panel { padding: 18px 20px !important; }
	.auth-panel .eyebrow { font-size: 10px !important; margin-bottom: 6px !important; }
	.auth-panel h2 { font-size: 18px !important; margin: 0 0 8px !important; line-height: 1.2 !important; }
	.auth-panel > p { font-size: 11.5px !important; line-height: 1.4 !important; }
	.inside { margin-top: 10px !important; }
	.inside li { margin-bottom: 8px !important; gap: 10px !important; }
	.inside .mark { width: 22px !important; height: 22px !important; font-size: 11px !important; }
	.inside strong { font-size: 11.5px !important; }
	.inside p { font-size: 10px !important; margin-top: 2px !important; }
	.panel-foot { display: none !important; }
	.help { margin-top: 12px !important; padding-top: 8px !important; font-size: 11px !important; }
	.otp-boxes input { height: 40px !important; font-size: 18px !important; }
	.resend-row { margin: 10px 0 !important; font-size: 11px !important; }
	.privacy { font-size: 9.5px !important; margin-top: 10px !important; }
}
