/**************************************************************************************************
| 609 Mafia - authentication pages (pages/signup.php: invitation code, sign-up form, closed / done cards)
|
| Everything is scoped under .iz-auth / .iz-auth-body so none of the legacy registration styles in
| site.css (.reg_container / .reg_namebox / reg_para_bg.jpg - the old red, left-aligned table) can leak
| in, and nothing here changes any other page. Same visual language as login.php and the themed auth
| error page: the shared smoke-video background (inc/background.php), the mb.gif hero centred on top,
| one centred dark glass card (--mu-* tokens from site.css).
|**************************************************************************************************/

body.iz-auth-body {
    background: #000;
    text-align: center;
    font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #e9e9e9;
    min-height: 100vh;
}
.iz-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 48px;
    box-sizing: border-box;
    min-height: 100vh;
}
.iz-auth *, .iz-auth *::before, .iz-auth *::after { box-sizing: border-box; }

.iz-auth-hero { display: block; line-height: 0; margin: 0 auto 18px; max-width: 100%; }
.iz-auth-hero img { max-width: min(560px, 92vw); height: auto; }

.iz-auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 26px 26px 20px;
    background: rgba(10, 10, 10, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-align: left;
    animation: iz-auth-in .35s ease-out;
}
.iz-auth-card.iz-auth-wide { max-width: 640px; }
@keyframes iz-auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.iz-auth-card h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}
.iz-auth-sub { margin: 0 0 16px; text-align: center; color: #a9a9a9; font-size: 13px; }
.iz-auth-sub.ok, .iz-auth .ok { color: #57d98a; }
.iz-auth .bad { color: #ff6b6b; }

.iz-auth-msg {
    margin: 10px 0 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: 14px;
}
.iz-auth-msg.bad { color: #ffb3b3; background: rgba(255, 60, 60, 0.10); border-color: rgba(255, 80, 80, 0.35); }
.iz-auth-msg.ok { color: #b8f5cf; background: rgba(60, 220, 120, 0.10); border-color: rgba(60, 220, 120, 0.35); }

.iz-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
@media (max-width: 560px) { .iz-auth-grid { grid-template-columns: 1fr; } .iz-auth-card { padding: 20px 16px 16px; } }

.iz-auth-field { display: block; margin: 0 0 12px; }
.iz-auth-field > span { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cfcfcf; }
.iz-auth-field small, .iz-auth-pills small { font-weight: 400; text-transform: none; letter-spacing: 0; color: #8d8d8d; }
.iz-auth-field input, .iz-auth-field select {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    margin: 0;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.iz-auth-field select option { background: #111; color: #fff; }
.iz-auth-field input:focus, .iz-auth-field select:focus { border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.iz-auth-field em { display: block; min-height: 16px; margin-top: 4px; font-style: normal; font-size: 12px; }
.iz-auth-field em font { font-size: 12px; }
.iz-auth-captcha { display: block; margin: 0 0 8px; border-radius: 6px; max-width: 100%; }
.iz-auth-turnstile { min-height: 70px; }

.iz-auth-pills { border: 0; margin: 4px 0 14px; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.iz-auth-pills legend { width: 100%; margin: 0 0 8px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cfcfcf; }
.iz-pill { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; cursor: pointer; background: rgba(0, 0, 0, 0.45); transition: border-color .15s, background .15s; }
.iz-pill input { position: absolute; opacity: 0; pointer-events: none; }
.iz-pill i { width: 26px; height: 12px; border-radius: 6px; flex: none; }
.iz-pill.red i { background: linear-gradient(90deg, #ff3b3b, #a40000); box-shadow: 0 0 10px rgba(255, 50, 50, .5); }
.iz-pill.blue i { background: linear-gradient(90deg, #3ba4ff, #0040a4); box-shadow: 0 0 10px rgba(50, 140, 255, .5); }
.iz-pill span { font-weight: 800; letter-spacing: .1em; font-size: 12px; }
.iz-pill:has(input:checked) { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.08); }
.iz-pill input:focus-visible + i { outline: 2px solid #fff; outline-offset: 3px; }

.iz-auth-btn {
    display: block;
    width: 100%;
    height: 44px;
    margin: 6px 0 0;
    border: 0;
    border-radius: 8px;
    background: #eee;
    color: #050505;
    font: inherit;
    font-weight: 800;
    letter-spacing: .14em;
    text-align: center;
    line-height: 44px;
    text-decoration: none;
    cursor: pointer;
}
a.iz-auth-btn { color: #050505; }
.iz-auth-foot { margin: 14px 0 0; text-align: center; color: #9a9a9a; font-size: 13px; }
.iz-auth-foot a { color: #fff; text-decoration: underline; }
