/* Tela de login: escura, formulário à esquerda e arte abstrata à direita. */
:root {
  --bg: #0a0a0b; --fg: #f4f4f5; --muted: #a1a1aa; --line: #27272a; --field: #0f0f11;
  --button: #e4e4e7; --button-fg: #09090b; --danger: #f87171;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg);
       font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
       -webkit-font-smoothing: antialiased; }

.grid-bg { position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%); }

.shell { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
         min-height: 100vh; padding: 48px clamp(16px, 5vw, 96px); align-items: center; }

.panel { display: flex; justify-content: center; }
.form { width: 100%; max-width: 380px; display: flex; flex-direction: column; }

.logo { width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 11px;
        display: grid; place-items: center; background: var(--fg); color: var(--bg); }
h1 { margin: 0; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.subtitle { margin: 6px 0 32px; text-align: center; color: var(--muted); }

label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input[type="text"], input[type="password"] {
  width: 100%; height: 44px; padding: 0 14px; margin-bottom: 20px; font: inherit; color: var(--fg);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #71717a; }
input:focus { outline: none; border-color: #52525b; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }

.password { position: relative; }
.password input { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0;
       border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
       display: grid; place-items: center; }
.eye:hover, .eye:focus-visible { color: var(--fg); background: rgba(255, 255, 255, .06); outline: none; }
.caps { margin: -12px 0 16px; font-size: 13px; color: #fbbf24; }

.submit { height: 44px; margin-top: 4px; border: 0; border-radius: 10px; font: inherit;
          font-weight: 600; color: var(--button-fg); background: var(--button); cursor: pointer;
          transition: background .15s; }
.submit:hover { background: #fff; }
.submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.alert { margin-bottom: 20px; padding: 10px 14px; font-size: 14px; color: var(--danger);
         background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .35);
         border-radius: 10px; }
.footnote { margin: 28px 0 0; text-align: center; font-size: 13px; color: #71717a; }

.art { height: min(1120px, calc(100vh - 96px)); border: 1px solid var(--line); border-radius: 18px;
       overflow: hidden; background: #050506; }
.art svg { width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .art { display: none; }
}
[hidden] { display: none !important; }
