@import url("/assets/tokens.css");

body.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.public-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; padding: 18px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }

.brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.brand img { border-radius: 14px; background: var(--ink); box-shadow: 0 0 0 1px rgba(212,165,55,.35); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand-sub { color: var(--muted); font-size: 13px; }

.login-shell { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--surface); }
.login-hero { position: relative; background: #000; color: #f4efe3; padding: 36px 32px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 560px; overflow: hidden; }
.login-hero::after { content: ""; position: absolute; inset: 0; border-right: 1px solid rgba(212,165,55,.25); pointer-events: none; }
.hero-logo { width: 100%; max-width: 460px; height: auto; display: block; }
.hero-copy { position: relative; width: 100%; max-width: 380px; }
.hero-copy h2 { font-size: 24px; line-height: 1.2; margin: 0 0 .9rem; letter-spacing: -.01em; text-align: center; }
.hero-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.hero-copy li { padding-left: 1.6rem; position: relative; color: #e6dcc4; }
.hero-copy li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; border-radius: 50%; background: #d4a537; box-shadow: 0 0 10px rgba(212,165,55,.6); }

.login-card { border: 0; box-shadow: none; border-radius: 0; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.login-card h1 { font-size: 28px; margin: 0; letter-spacing: -.02em; }
.lead { color: var(--muted); margin: .4rem 0 1.4rem; }
.fine { color: var(--muted); font-size: 13px; margin: .8rem 0 0; }
.btn-ms { width: 100%; min-height: 50px; font-size: 16px; }

.notice { padding: .7rem .9rem; border-radius: 10px; margin-bottom: 1rem; font-size: 14px; }
.notice-info { background: var(--info-soft); color: var(--info); }
.notice-warn { background: var(--warn-soft); color: var(--warn); }

.demo-banner { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 10px; padding: .7rem .9rem; font-size: 13px; margin-bottom: 1rem; }
.demo-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.demo-form legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: .45rem; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.role-card { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.role-card:hover { border-color: var(--brand); }
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.role-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.role-title { font-weight: 700; font-size: 14px; }
.role-desc { color: var(--muted); font-size: 12px; line-height: 1.35; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.demo-form .btn-primary { width: 100%; }

.trust { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.6rem; }
.trust span { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: .25rem .65rem; }

.status-card { max-width: 560px; width: 100%; padding: 36px; }
.status-code { display: inline-block; font: 700 12px var(--font); letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.status-warn .status-code { background: var(--warn-soft); color: var(--warn); }
.status-danger .status-code { background: var(--danger-soft); color: var(--danger); }
.status-info .status-code { background: var(--info-soft); color: var(--info); }
.status-card h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.status-details { color: var(--muted); padding-left: 1.2rem; margin: 0 0 1.4rem; }
.status-details li + li { margin-top: .35rem; }
.status-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; max-width: 520px; }
  .login-hero { min-height: 0; padding: 24px 20px 28px; }
  .login-hero::after { border-right: 0; border-bottom: 1px solid rgba(212,165,55,.25); }
  .hero-logo { max-width: 360px; }
  .hero-copy h2 { font-size: 20px; }
  .login-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .public-main { padding: 16px; }
  .role-grid, .field-row { grid-template-columns: 1fr; }
  .login-hero { padding: 16px 12px 4px; gap: 0; }
  .hero-copy { display: none; }
  .status-card { padding: 24px; }
}
.login-card .brand { display: none; }
.player-field { margin-bottom: 1rem; }
