/* ==========================================================================
   Login screen (My account, logged out): photo panel + step card
   ========================================================================== */
.dm-accpage--auth { padding-top: clamp(16px, 2vw, 28px); padding-bottom: clamp(40px, 5vw, 72px); }
.dm-auth.dm-qlogin { max-width: 1280px; margin: 0 auto; padding: 0; }
.dm-auth__frame { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: clamp(560px, 46vw, 640px); padding: clamp(20px, 2.4vw, 34px); border-radius: 22px; overflow: hidden; background: #111; isolation: isolate; }
.dm-auth__media { position: absolute; inset: 0 clamp(300px, 26vw, 380px) 0 0; z-index: -1; }
.dm-auth__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, #111 99%); pointer-events: none; }
.dm-auth__panel { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.dm-auth__panel.is-on { opacity: 1; }
.dm-auth__panel > img { width: 100%; height: 100%; object-fit: cover; }
.dm-auth__panel[data-auth-panel="1"] > img { object-position: 100% 40%; transform: scaleX(-1); }
.dm-auth__panel[data-auth-panel="2"] > img { object-position: 50% 18%; }
.dm-auth__panel[data-auth-panel="3"] > img { object-position: 30% 30%; }
.dm-auth__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 25%, rgba(0, 0, 0, .82) 100%), linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 60%); }
.dm-auth__copy { position: absolute; left: clamp(24px, 3vw, 48px); right: 18%; bottom: clamp(24px, 3vw, 44px); z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: #fff; }
.dm-auth__panel:not(.is-on) .dm-auth__copy > * { opacity: 0; transform: translateY(14px); }
.dm-auth__copy > * { transition: opacity .55s var(--ease) .15s, transform .55s var(--ease) .15s; }
.dm-auth__eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.dm-auth__mark { width: 34px; height: auto; }
.dm-auth__title { display: flex; flex-direction: column; font-weight: 900; font-style: italic; font-stretch: 125%; text-transform: uppercase; font-size: clamp(44px, 5.4vw, 86px); line-height: .9; letter-spacing: -.01em; }
.dm-auth__title .is-lime { color: var(--lime); }
.dm-auth__text { max-width: 30ch; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.4; opacity: .92; }
.dm-auth__points { display: flex; gap: clamp(16px, 2vw, 30px); margin-top: 8px; }
.dm-auth__points--list { flex-direction: column; gap: 16px; }
.dm-auth__point { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.3; }
.dm-auth__point svg { flex: none; width: 26px; height: 26px; stroke-width: 1.5; }
.dm-auth__point b { display: block; font-weight: 600; }
.dm-auth__point small { display: block; font-size: 12px; opacity: .72; }

.dm-auth__card.dm-qlogin__card { position: relative; width: min(100%, 440px); min-height: 470px; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3vw, 44px) clamp(24px, 2.8vw, 40px); border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.dm-auth__step.is-in { animation: dmAuthIn .4s var(--ease) both; }
@keyframes dmAuthIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dm-auth__head { margin-bottom: 26px; }
.dm-auth__head--center { text-align: center; }
.dm-auth .dm-auth__head h2::after, .dm-auth .dm-auth__done h2::after { display: none; }
.dm-auth .dm-auth__head h2, .dm-auth .dm-auth__done h2 { font-style: normal; text-transform: none; font-stretch: 100%; line-height: 1.15; }
.dm-auth__head h2 { margin: 0; font-size: clamp(23px, 1.9vw, 28px); font-weight: 800; letter-spacing: -.01em; }
.dm-auth__head p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.dm-auth__head p strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.dm-auth__back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 26px; padding: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.dm-auth__back svg { width: 16px; height: 16px; transition: transform .25s; }
.dm-auth__back:hover svg { transform: translateX(-3px); }

.dm-auth__alt.dm-auth__alt { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 56px; padding: 0 18px; border: 1px solid #e2e3df; border-radius: 12px; background: #fff; font-size: 15.5px; font-weight: 600; color: var(--ink); box-shadow: 0 6px 16px -14px rgba(0, 0, 0, .5); transition: border-color .25s, box-shadow .25s, transform .25s; }
.dm-auth__alt.dm-auth__alt:hover:not(:disabled) { border-color: var(--ink); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .45); transform: translateY(-1px); }
.dm-auth__alt svg { width: 22px; height: 22px; }
.dm-auth__or { display: flex; align-items: center; gap: 14px; margin: 18px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dm-auth__or::before, .dm-auth__or::after { content: ""; flex: 1; height: 1px; background: #e6e7e3; }
.dm-auth__new { margin: 30px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.dm-auth__link { padding: 0; background: none; font-size: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.dm-auth__link:disabled { color: var(--muted); cursor: default; }

.dm-auth__phone { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.dm-auth__cc { display: flex; align-items: center; gap: 9px; height: 56px; padding: 0 16px; border: 1px solid #e2e3df; border-radius: 12px; font-weight: 600; font-size: 15.5px; }
.dm-auth__cc svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.dm-auth__phone input, .dm-auth__field input { width: 100%; min-width: 0; height: 56px; padding: 0 16px; border: 1px solid #e2e3df; border-radius: 12px; background: #fff; font-size: 17px; letter-spacing: .03em; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.dm-auth__phone input:focus, .dm-auth__field input:focus, .dm-auth__otp input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(182, 250, 14, .45); }

.dm-auth__btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; margin-top: 24px; padding: 0 52px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background .25s, transform .25s, opacity .25s; }
.dm-auth__btn:hover { background: #000; color: #fff; }
.dm-auth__btn svg { position: absolute; right: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px; transition: transform .25s; }
.dm-auth__btn:hover svg { transform: translateX(4px); }
.dm-auth__btn:disabled { opacity: .5; cursor: not-allowed; }
.dm-auth__btn.is-busy { opacity: .7; cursor: progress; }

.dm-auth__otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(6px, .8vw, 10px); }
.dm-auth__otp input { width: 100%; min-width: 0; height: 58px; padding: 0; border: 1px solid #dcddd8; border-radius: 12px; text-align: center; font-size: 22px; font-weight: 700; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.dm-auth__otp input.is-filled { border-color: var(--ink); }
.dm-auth__resend { margin: 20px 0 0; text-align: center; font-size: 14px; }
.dm-auth__resend .dm-auth__link { font-weight: 500; }

.dm-auth__label.dm-auth__label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.dm-auth__field { position: relative; }
.dm-auth__field svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.dm-auth__field input { padding-left: 48px; background: #f7f7f5; }
.dm-qlogin .dm-auth__agree { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.dm-auth__agree input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.dm-auth__tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid #c4c6c0; border-radius: 5px; background: #fff; transition: background .2s, border-color .2s; }
.dm-auth__tick svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease); }
.dm-auth__agree input:checked + .dm-auth__tick { background: var(--lime); border-color: var(--lime); }
.dm-auth__agree input:checked + .dm-auth__tick svg { opacity: 1; transform: none; }
.dm-auth__agree input:focus-visible + .dm-auth__tick { box-shadow: 0 0 0 3px rgba(182, 250, 14, .5); }
.dm-auth__agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.dm-auth__done { text-align: center; }
.dm-auth__done h2 { margin: 0; font-size: clamp(23px, 1.9vw, 28px); font-weight: 800; }
.dm-auth__done p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.dm-auth__burst { position: relative; display: block; width: 150px; height: 130px; margin: 0 auto 22px; }
.dm-auth__ok { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; background: #ecffc4; }
.dm-auth__ok svg { width: 52px; height: 52px; stroke: #5d9a00; stroke-width: 3; }
.dm-auth__burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--lime); opacity: 0; }
.dm-auth__burst i:nth-child(1) { --x: -68px; --y: -40px; }
.dm-auth__burst i:nth-child(2) { --x: 70px; --y: -46px; }
.dm-auth__burst i:nth-child(3) { --x: -74px; --y: 18px; width: 4px; height: 4px; }
.dm-auth__burst i:nth-child(4) { --x: 72px; --y: 26px; }
.dm-auth__burst i:nth-child(5) { --x: -40px; --y: -62px; width: 4px; height: 4px; }
.dm-auth__burst i:nth-child(6) { --x: 44px; --y: -64px; width: 4px; height: 4px; }
.dm-auth__burst i:nth-child(7) { --x: -52px; --y: 54px; width: 4px; height: 4px; }
.dm-auth__burst i:nth-child(8) { --x: 56px; --y: 56px; width: 5px; height: 5px; }
.dm-auth__done.is-in .dm-auth__ok { animation: dmAuthPop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.dm-auth__done.is-in .dm-auth__burst i { animation: dmAuthDot .9s var(--ease) .2s both; }
@keyframes dmAuthPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dmAuthDot { 0% { opacity: 0; transform: none; } 40% { opacity: 1; } 100% { opacity: 1; transform: translate(var(--x), var(--y)); } }

.dm-auth .dm-qlogin__msg { margin: 16px 0 0; text-align: center; }
.dm-auth .dm-qlogin__admin { margin-bottom: 14px; }

@media (max-width: 899px) {
	.dm-auth__frame { display: block; min-height: 0; padding: 0; border-radius: 18px; background: #fff; overflow: visible; }
	.dm-auth__media { position: relative; inset: auto; height: clamp(230px, 62vw, 340px); border-radius: 18px; overflow: hidden; }
	.dm-auth__media::after { display: none; }
	.dm-auth__panel[data-auth-panel="1"] > img { object-position: 100% 45%; }
	.dm-auth__copy { left: 20px; right: 20px; bottom: 54px; gap: 10px; }
	.dm-auth__mark, .dm-auth__points { display: none; }
	.dm-auth__title { font-size: clamp(38px, 11vw, 54px); }
	.dm-auth__text { font-size: 14.5px; }
	.dm-auth__alt.dm-auth__alt { gap: 10px; padding: 0 12px; font-size: 14.5px; white-space: nowrap; }
	.dm-auth__card.dm-qlogin__card { width: auto; min-height: 0; margin: -36px 10px 0; padding: 28px 20px 26px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35); border: 1px solid #ecedea; }
}
@media (prefers-reduced-motion: reduce) {
	.dm-auth__panel, .dm-auth__copy > *, .dm-auth__step.is-in, .dm-auth__done.is-in .dm-auth__ok, .dm-auth__done.is-in .dm-auth__burst i { transition: none; animation: none; }
	.dm-auth__done .dm-auth__burst i { opacity: 1; transform: translate(var(--x), var(--y)); }
}
