/* 拾光码 · auth */
body.page-auth { background: var(--cream); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 44%) 1fr; }
.auth-aside {
    position: relative; overflow: hidden; padding: 36px 46px 30px; color: #f4efdf;
    background: radial-gradient(circle at 80% 10%, #1f5a43, transparent 44%), linear-gradient(155deg, #0d3527 0%, #102e22 55%, #0a241a 100%);
    display: flex; flex-direction: column; min-height: 100vh;
}
.auth-aside::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(244,239,223,.11) .5px, transparent .5px); background-size: 6px 6px; opacity: .4; pointer-events: none; }
.auth-aside::after { content: ""; position: absolute; width: 540px; height: 540px; border: 1px solid rgba(244,239,223,.09); border-radius: 50%; right: -260px; bottom: -150px; pointer-events: none; }
.auth-aside-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.auth-aside .brand { color: #edf3e8; }
.auth-aside .brand-word { color: #f6f2e6; }
.auth-aside-tag { font-size: 9px; letter-spacing: .18em; color: rgba(244,239,223,.48); border: 1px solid rgba(244,239,223,.18); border-radius: 999px; padding: 5px 10px; }
.auth-aside-copy { position: relative; z-index: 2; margin-top: 12vh; max-width: 430px; }
.auth-aside-copy .eyebrow { margin-bottom: 24px; }
.auth-aside-copy h1 { font-family: var(--serif); font-size: clamp(34px, 3.5vw, 47px); line-height: 1.32; font-weight: 600; letter-spacing: -.04em; }
.auth-aside-copy > p:last-child { margin-top: 22px; max-width: 360px; font-size: 13px; line-height: 1.95; color: rgba(244,239,223,.6); }
.auth-stack { position: relative; z-index: 2; flex: 1; min-height: 250px; margin-top: 30px; }
.auth-photo {
    position: absolute; width: 190px; padding: 8px 8px 30px; background: #faf6ea; box-shadow: 0 22px 45px rgba(0,0,0,.3);
    color: #514c40; font-family: var(--hand); font-size: 12px;
}
.auth-photo span { position: absolute; bottom: 7px; left: 11px; }
.auth-photo-art { height: 150px; background-size: cover; background-position: center; }
.auth-photo-a { left: 6%; top: 6%; transform: rotate(-7deg); }
.auth-photo-a .auth-photo-art { background-image: linear-gradient(160deg, rgba(255,214,162,.5), transparent 50%), radial-gradient(circle at 70% 25%, #f5cf87 0 8%, transparent 9%), linear-gradient(165deg, #8c9b6c 0%, #d6b986 48%, #8d5e3f 100%); }
.auth-photo-b { left: 39%; top: 25%; transform: rotate(5deg); }
.auth-photo-b .auth-photo-art { background-image: radial-gradient(circle at 40% 30%, rgba(255,255,255,.35), transparent 30%), linear-gradient(155deg, #73958c 0%, #b5c5b2 45%, #d9c7aa 100%); }
.auth-mini-qr { position: absolute; right: 4%; top: 12%; width: 88px; height: 88px; padding: 9px; background: #faf6ea; transform: rotate(8deg); box-shadow: 0 16px 30px rgba(0,0,0,.22); display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 3px; }
.auth-mini-qr i { background: #123f2e; border-radius: 1px; }
.auth-mini-qr i:nth-child(2) { background: transparent; }
.auth-mini-qr i:nth-child(3) { background: transparent; }
.auth-mini-qr b { grid-column: 2 / 4; grid-row: 2 / 4; background: #123f2e; border-radius: 1px; }
.auth-aside-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(244,239,223,.14); font-size: 8.5px; letter-spacing: .12em; color: rgba(244,239,223,.42); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 50px 40px; position: relative; background: radial-gradient(circle at 80% 80%, rgba(231,226,211,.5), transparent 55%), var(--cream); }
.auth-main-inner { width: min(430px, 100%); }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 44px; }
.auth-back:hover { color: var(--ink); }
.auth-form-head { margin-bottom: 28px; }
.auth-kicker { font-size: 9px; letter-spacing: .2em; font-weight: 700; color: var(--coral); margin-bottom: 12px; }
.auth-form-head h2 { font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: -.045em; line-height: 1.25; }
.auth-form-head > p:last-child { margin-top: 9px; color: var(--muted); font-size: 13px; }
.auth-form { display: flex; flex-direction: column; gap: 17px; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.auth-hint { font-size: 11px; color: var(--muted-2); }
.auth-form .btn-block { margin-top: 6px; }
.auth-switch { margin-top: 20px; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--green); font-weight: 600; border-bottom: 1px solid rgba(20,80,59,.3); }
.auth-agree { margin: 1px 0 2px; font-size: 12px; }
.auth-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; font-size: 10px; color: var(--muted-2); }
.auth-perks span { display: inline-flex; align-items: center; gap: 4px; }
.auth-perks .icon { color: var(--green); }
.auth-legal { margin-top: 38px; font-size: 10px; line-height: 1.7; color: #a1a299; text-align: center; }
.demo-card { margin-top: 26px; padding: 14px 16px; border: 1px dashed rgba(20,80,59,.28); border-radius: 12px; background: rgba(229,237,231,.5); }
.demo-card-head { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--green); margin-bottom: 10px; }
.demo-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(20,80,59,.1); }
.demo-credential { display: flex; align-items: center; gap: 18px; }
.demo-credential > span { display: flex; flex-direction: column; gap: 1px; }
.demo-credential em { font-size: 8px; letter-spacing: .1em; color: var(--muted-2); }
.demo-credential code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: var(--ink-soft); }
.copy-mini { margin-left: auto; border: 1px solid rgba(20,80,59,.25); background: #fffdf7; color: var(--green); font-size: 10px; border-radius: 999px; padding: 4px 10px; }
.copy-mini:hover { background: var(--green); color: #fff; }
.demo-card > p { margin-top: 9px; font-size: 10px; color: var(--muted); line-height: 1.5; }

@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-main { min-height: 100vh; padding: 44px 24px; }
    .auth-back { margin-bottom: 34px; }
}
@media (max-width: 520px) {
    .auth-main { align-items: flex-start; padding: 28px 20px 40px; }
    .auth-form-head h2 { font-size: 32px; }
    .auth-back { margin-bottom: 28px; }
    .demo-credential { gap: 10px; }
    .auth-legal { margin-top: 28px; }
}

/* use generated sample photographs */
.auth-photo-a .auth-photo-art { background-image: linear-gradient(160deg, rgba(255,214,162,.18), transparent 55%), url("../img/auth-summer.jpg"); }
.auth-photo-b .auth-photo-art { background-image: linear-gradient(160deg, rgba(255,255,255,.12), transparent 50%), url("../img/auth-seaside.jpg"); }
