:root {
  --bg: #151a22;
  --surface: #071a38;
  --surface-2: #102442;
  --text: #eaf3ff;
  --muted: #aebbd0;
  --line: rgba(234,243,255,.13);
  --line-strong: rgba(234,243,255,.26);
  --red: #176bff;
  --green: #1ed760;
  --danger-bg: rgba(229,43,53,.1);
  --danger: #ffb6ba;
  --ok-bg: rgba(30,215,96,.09);
  --ok: #aaf7c4;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; min-height: 100dvh; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
a { color: var(--text); font-weight: 800; text-decoration: none; }
a:hover { color: var(--green); }

.auth-shell { min-height: 100dvh; display: grid; place-items: center; padding: 28px; }
.login-shell { background: linear-gradient(118deg, #151a22 0%, #071a38 55%, #151a22 100%); }
.login-card { width: min(1180px, 100%); min-height: 660px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.48); }
.login-brand { position: relative; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px; background: #071a38; }
.login-panel { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 62px; border-left: 1px solid var(--line); background: #102442; }

.auth-brand { position: relative; z-index: 2; display: inline-flex; width: max-content; align-items: center; gap: 11px; font-size: 14px; }
.auth-brand .logo { width: 46px; height: 46px; padding: 5px; border: 1px solid rgba(234,243,255,.35); border-radius: 4px; background: #eaf3ff; object-fit: contain; }
.auth-brand small { color: var(--muted); font-size: 10px; font-weight: 600; }
.auth-artist { position: absolute; inset: 0; }
.auth-artist::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.35), rgba(8,8,8,.08) 32%, rgba(8,8,8,.92) 84%); }
.auth-artist > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.04); }
.auth-artist > div { position: absolute; z-index: 2; right: 38px; top: 38px; padding: 12px 14px; border-left: 3px solid var(--green); background: rgba(8,8,8,.85); }
.auth-artist span, .auth-artist strong { display: block; }
.auth-artist span { color: var(--green); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.auth-artist strong { margin-top: 4px; font-size: 15px; }
.auth-brand-copy { position: relative; z-index: 3; max-width: 530px; }
.register-brand { justify-content: space-between; background: linear-gradient(145deg, #102442, #071a38); }

.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { width: 20px; height: 2px; background: var(--red); }
h1 { margin: 0; font-size: 64px; line-height: .98; }
.lead { max-width: 480px; margin: 16px 0 0; color: var(--muted); line-height: 1.6; }
.form-heading { margin-bottom: 28px; }
.form-heading span { display: block; color: var(--muted); font-size: 12px; }
.form-heading strong { display: block; margin-top: 6px; font-size: 30px; line-height: 1.08; }

form { display: grid; gap: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.field-label { color: #d7cfca; font-size: 12px; font-weight: 800; }
.input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--text); background: #071a38; font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease; }
.input::placeholder { color: #6f6966; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,215,96,.12); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 5px; color: var(--muted); font-size: 12px; }
.check-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.check-label input { width: 16px; height: 16px; accent-color: var(--green); }
.btn { width: 100%; min-height: 50px; margin-top: 4px; padding: 0 16px; border: 1px solid var(--red); border-radius: 6px; color: white; background: var(--red); cursor: pointer; font-size: 14px; font-weight: 900; transition: transform .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); background: #3e84ff; }
.muted { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.error, .ok { margin-bottom: 14px; padding: 12px 13px; border: 1px solid; border-radius: 6px; font-size: 13px; line-height: 1.45; }
.error { border-color: rgba(229,43,53,.35); color: var(--danger); background: var(--danger-bg); }
.ok { border-color: rgba(30,215,96,.32); color: var(--ok); background: var(--ok-bg); }
.debug-link { word-break: break-all; }
.recaptcha-wrap { display: flex; justify-content: center; margin-top: 5px; overflow: hidden; }

.card { width: min(560px, 100%); padding: 34px; border: 1px solid var(--line); background: var(--surface-2); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.card .brand { margin-bottom: 26px; text-align: center; }
.card .logo { display: block; width: 90px; margin: 0 auto 16px; }
.card h1 { font-size: 32px; }
.card .lead { margin: 10px auto 0; text-align: center; }

@media (max-width: 860px) {
  .auth-shell { padding: 14px; }
  .login-card { min-height: 0; grid-template-columns: 1fr; }
  .login-brand { min-height: 360px; padding: 26px; }
  .login-panel { padding: 32px 26px; border-top: 1px solid var(--line); border-left: 0; }
  h1 { font-size: 50px; }
  .auth-artist > div { top: 26px; right: 26px; }
  .register-brand { min-height: 300px; }
}

@media (max-width: 520px) {
  .auth-shell { padding: 0; place-items: stretch; }
  .login-card { width: 100%; border: 0; box-shadow: none; }
  .login-brand { min-height: 300px; padding: 20px; }
  .auth-brand .logo { width: 40px; height: 40px; }
  .auth-artist > div { top: 20px; right: 20px; }
  .auth-brand-copy h1 { font-size: 40px; }
  .login-panel { padding: 30px 20px; }
  .form-heading strong { font-size: 26px; }
  .form-row { align-items: flex-start; flex-direction: column; }
  .card { min-height: 100dvh; width: 100%; padding: 28px 20px; border: 0; }
  .recaptcha-wrap { transform-origin: center; }
}
