/* Login-only stylesheet; working PWA screens retain their existing theme. */
.merch-apk { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e5bf8c33; min-width: 0; }
.merch-apk-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 14px; border: 1px solid #b88a55; border-radius: 10px; color: #e5bf8c; text-align: center; text-decoration: none; font-size: 15px; line-height: 1.4; font-weight: 600; }
.merch-apk-button:hover, .merch-apk-button:focus-visible { color: #ffe0b6; background: #e5bf8c10; outline-offset: 3px; }
.merch-apk-button[aria-disabled="true"] { opacity: .65; cursor: progress; }
.merch-apk-note { color: #b9b0a5; font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
.merch-apk progress { display: block; width: 100%; height: 9px; margin: 16px 0 8px; accent-color: #e5bf8c; border-radius: 6px; }
.merch-apk-progress-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #e5bf8c; font-size: 13px; }
.merch-apk-progress-row button { min-height: 44px; padding: 8px 10px; background: transparent; color: #e5bf8c; border: 1px solid #e5bf8c55; border-radius: 8px; cursor: pointer; }
.merch-apk-status { color: #b9b0a5; font-size: 13px; line-height: 1.5; margin: 10px 0 0; }
.merch-apk-status:empty { display: none; }
.merch-apk-status[data-error="true"] { color: #ffd6c9; }
.merch-apk-save { color: #e5bf8c; display: inline-block; padding: 12px 0; font-size: 13px; }
.merch-apk [hidden] { display: none !important; }
body { background: #100e0b; padding-bottom: 0; }
.merch-auth {
    --gold: #e5bf8c; --muted: #b9b0a5;
    position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
    min-height: 100vh; min-height: 100svh;
    color: #f7f2eb; background: #100e0b; isolation: isolate;
}
.merch-auth-scene { position: absolute; inset: 0 auto 0 0; width: 60%; overflow: hidden; z-index: -1; }
.merch-auth-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.merch-auth-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #100e0b 100%); }
.merch-auth-panel { grid-column: 2; width: 100%; max-width: 472px; margin: 0 auto; padding: 48px 32px; }
.merch-auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.merch-auth-brand img { width: 60px; height: 60px; border-radius: 14px; border: 1px solid #a17c4b60; object-fit: contain; }
.merch-auth-eyebrow { color: var(--gold); font-size: 10px; letter-spacing: .18em; font-weight: 650; margin: 0 0 4px; }
.merch-auth-brand-name { font-size: 16px; font-weight: 600; margin: 0; }
.merch-auth h1 { color: #f7f2eb; font-size: clamp(29px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.2; font-weight: 600; margin: 0 0 10px; }
.merch-auth-subtitle { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 28px; }
.merch-auth-field { position: relative; margin-bottom: 20px; }
.merch-auth label { display: block; font-size: 13px; font-weight: 600; color: #ded2c2; margin-bottom: 8px; }
.merch-auth select, .merch-auth input:not(.merch-auth-username) {
    width: 100%; min-width: 0; height: 54px; border: 1px solid #70604e;
    background-color: #191612; border-radius: 10px; padding: 0 14px;
    color: #fff5e8; font: inherit; font-size: 16px; outline: none; color-scheme: dark;
}
.merch-auth select { padding-right: 28px; }
.merch-auth select option { background: #191612; color: #fff5e8; }
.merch-auth input::placeholder { color: #a99d8f; }
.merch-auth input:focus, .merch-auth select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #e5bf8c22; }
.merch-auth input:-webkit-autofill { -webkit-text-fill-color: #fff5e8; -webkit-box-shadow: 0 0 0 1000px #211c15 inset; }
.merch-auth-username { position: absolute; width: 1px; height: 1px; opacity: .01; clip-path: inset(50%); pointer-events: none; }
.merch-auth-password { position: relative; }
.merch-auth-password input { padding-right: 94px !important; }
.merch-auth-toggle { position: absolute; right: 5px; top: 5px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--gold); font: inherit; font-size: 12px; cursor: pointer; }
.merch-auth button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.merch-auth-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 12px 18px; border: 1px solid #e5bf8c; border-radius: 10px; color: #20170e; background: linear-gradient(105deg, #e9c79b, #c6955b); font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; }
.merch-auth-submit:hover { filter: brightness(1.06); }
.merch-auth-submit span { font-size: 23px; line-height: 1; }
.merch-auth-hint { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.merch-auth-footer { color: #a99d8f; font-size: 12px; margin-top: 28px; }
.merch-auth-error { padding: 12px 14px; border: 1px solid #bc6e58; border-radius: 10px; background: #391c17; color: #ffd6c9; font-size: 14px; margin-bottom: 20px; }
@media (max-width: 760px) {
    .merch-auth { display: block; padding-top: min(87vw, 390px); }
    .merch-auth-scene { width: 100%; height: min(100vw, 450px); bottom: auto; }
    .merch-auth-scene img { object-position: center top; }
    .merch-auth-scene::after { background: linear-gradient(180deg, transparent 68%, #100e0b 100%); }
    .merch-auth-panel { padding: 0 24px max(28px, env(safe-area-inset-bottom)); }
    .merch-auth-brand { gap: 13px; margin-bottom: 22px; }
    .merch-auth-brand img { width: 50px; height: 50px; border-radius: 12px; }
    .merch-auth h1 { font-size: 30px; }
    .merch-auth-subtitle { margin-bottom: 24px; }
}
@media (max-width: 360px) {
    .merch-auth-panel { padding-left: 18px; padding-right: 18px; }
    .merch-auth h1 { font-size: 28px; }
    .merch-auth-brand-name { font-size: 15px; }
}
