/* Portal sign-in / enrolment screens (login.html, setup.html). Standalone,
   like the admin login: onyx gallery floor behind an ivory vitrine. Reuses
   the design tokens so light/dark and the brass accents match everywhere. */

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-sans); color: var(--ink);
    background: var(--onyx); min-height: 100vh;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.floor { position: fixed; inset: 0; z-index: 0; opacity: .5;
    background: conic-gradient(#191920 90deg, #101014 90deg 180deg, #191920 180deg 270deg, #101014 270deg);
    background-size: calc(var(--check) * 2) calc(var(--check) * 2); }
.floor::after { content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(0,0,0,.85) 70%); }

.auth-box {
    position: relative; z-index: 1; background: var(--ivory); color: var(--onyx);
    padding: 40px; border-radius: var(--radius-lg); width: 100%; max-width: 420px;
    box-shadow: var(--shadow-deep); border: var(--hairline) solid var(--bronze-smoke);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header .lock-icon {
    width: 48px; height: 48px; margin: 0 auto 16px; background: var(--onyx);
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.auth-header .lock-icon .ico { width: 24px; height: 24px; color: var(--brass-bright); }
.auth-box h1 { font-family: var(--font-display); color: var(--onyx); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.auth-box p.lead { color: #55524a; font-size: 14px; margin-top: 6px; }

.field { margin-bottom: 18px; }
.field label { display: block; color: #55524a; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.field input {
    width: 100%; padding: 14px 16px; border: var(--hairline) solid #c3bba9;
    border-radius: var(--radius); background: #fffdf8; color: var(--onyx);
    font-family: inherit; font-size: 16px; transition: all var(--t) var(--ease);
}
.field input:focus { outline: none; border-color: var(--brass); box-shadow: var(--ring); }

.auth-btn {
    width: 100%; padding: 14px; background: var(--brass); color: var(--onyx);
    border: none; border-radius: var(--radius-pill); font-family: inherit;
    font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 4px;
    transition: all var(--t) var(--ease);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover { background: var(--brass-bright); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.auth-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.auth-btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.auth-btn.secondary { background: transparent; color: var(--onyx); border: var(--hairline) solid #c3bba9; }
.auth-btn.secondary:hover { background: #f1ecdf; }
.auth-btn .ico { width: 18px; height: 18px; }

.auth-sep { display: flex; align-items: center; gap: 12px; color: #8a8578; font-size: 12px; margin: 20px 0; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: #ddd6c6; }

.hidden { display: none !important; }
.auth-msg { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; text-align: center; font-size: 14px; }
.auth-msg.error { background: #f6e4e4; color: #8a1f1f; border: var(--hairline) solid #d9a9a9; }
.auth-msg.ok { background: #e3f1e5; color: #1f6b2e; border: var(--hairline) solid #a9d9b4; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13px; }
.auth-foot a { color: var(--brass-deep, #8a6d1f); }
