/* Sign-in page. Follows the chosen look (data-look) like the app. */
:root { --gold: #d6a737; --gold-hi: #f7d968; --ease: cubic-bezier(.16, 1, .3, 1); }
[data-look="showroom"] { --bg: #10150a; --panel: rgba(16, 21, 10, .9); --ink: #f4f1ed; --ink2: #b9b5a8; --line: rgba(214, 167, 55, .28); --field: #19200f; --f-d: "Bodoni Moda", serif; --f-u: "Archivo", sans-serif; --f-ad: "Noto Kufi Arabic", sans-serif; --f-au: "Vazirmatn", sans-serif; }
[data-look="club"] { --bg: #0b0e08; --panel: #0b0e08; --ink: #e9e4d8; --ink2: #a9a492; --line: rgba(201, 164, 69, .3); --field: #12160d; --f-d: "Gloock", serif; --f-u: "Hanken Grotesk", sans-serif; --f-ad: "Markazi Text", serif; --f-au: "Vazirmatn", sans-serif; }
[data-look="editorial"] { --bg: #263017; --panel: #263017; --ink: #f4f1ed; --ink2: rgba(244, 241, 237, .76); --line: rgba(214, 167, 55, .4); --field: #1b2410; --f-d: "Bricolage Grotesque", sans-serif; --f-u: "Bricolage Grotesque", sans-serif; --f-ad: "Readex Pro", sans-serif; --f-au: "Readex Pro", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-u); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { font-family: var(--f-au); line-height: 1.75; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.login { min-height: 100svh; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; }
.login-media { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; background: #19200f; }
.login-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s linear both; }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.login-panel { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; padding: clamp(24px, 5vh, 48px) clamp(24px, 4vw, 56px); background: var(--panel); border-inline-end: 1px solid var(--line); }
[data-look="club"] .login { grid-template-columns: 1fr; place-items: center; }
[data-look="club"] .login-media { grid-column: 1; position: fixed; inset: 28px; border: 1px solid var(--line); opacity: .32; }
[data-look="club"] .login-panel { position: relative; width: min(480px, 92vw); border: 1px solid var(--line); outline: 10px solid var(--bg); margin: 60px 0; }
.login-top { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 40px; width: auto; }
.lang { background: none; border: 1px solid var(--line); height: 36px; padding: 0 12px; cursor: pointer; }
[dir="ltr"] .lang { font-family: var(--f-au); }
[dir="rtl"] .lang { font-family: var(--f-u); }
.login-body { margin: auto 0; padding: 48px 0; }
h1 { font: 500 clamp(2.2rem, 3.6vw, 3.1rem)/1.08 var(--f-d); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
[data-look="editorial"] h1 { font-weight: 650; font-variation-settings: "wdth" 80; }
[dir="rtl"] h1 { font-family: var(--f-ad); letter-spacing: 0; line-height: 1.45; font-variation-settings: normal; }
.sub { margin: 14px 0 0; color: var(--ink2); max-width: 40ch; }
form { margin-top: 32px; display: grid; gap: 18px; }
#reset { margin-top: 20px; }
label { display: grid; gap: 8px; font-size: .88rem; color: var(--ink2); }
input { height: 52px; padding: 0 14px; background: var(--field); border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font-size: 1rem; width: 100%; }
input:focus { outline: none; border-color: var(--gold); }
.pw { position: relative; display: block; }
.pw input { padding-inline-end: 52px; }
.eye { position: absolute; inset-inline-end: 4px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--ink2); cursor: pointer; }
.eye svg { width: 20px; height: 20px; }
.msg { margin: 0; min-height: 1.4em; color: var(--gold-hi); font-size: .9rem; }
.go { height: 54px; border: 0; background: var(--gold); color: #141a0c; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .2s; }
.go:hover { background: var(--gold-hi); }
.go:disabled { opacity: .7; cursor: progress; }
.forgot { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; }
.note { color: var(--ink2); font-size: .8rem; max-width: 46ch; margin: 0; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-media { grid-column: 1; grid-row: 1; height: 34svh; }
  .login-panel { grid-row: 2; border: 0; }
  [data-look="club"] .login-media { position: fixed; inset: 0; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .login-media img { animation: none; } }
