/* Log in / sign up: a narrow form panel on the left, the drawn animation on the right. */
@font-face { font-family: "Unbounded"; src: url("fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --bg: #0B0B0C;
  --art: #121015;
  --field: #161618;
  --field-2: #202023;
  --paper: #F3F1F2;
  --muted: #8E8B92;
  --pink: #FF4FA0;
  --on-pink: #19050E;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; display: grid; grid-template-columns: minmax(360px, 480px) minmax(0, 1fr); min-height: 100vh;
  background: var(--bg); color: var(--paper); font: 300 14px/1.5 "Unbounded", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p, h1 { margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.auth-panel { display: flex; flex-direction: column; padding: 40px 56px 32px; min-height: 100vh; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; align-self: flex-start; }
.auth-logo .mark {
  display: block; width: 46px; height: 46px; background: var(--pink);
  -webkit-mask: url("img/mark.svg") center / contain no-repeat; mask: url("img/mark.svg") center / contain no-repeat;
}
.auth-logo img { height: 24px; width: auto; }
.auth-box { margin: auto 0; padding: 40px 0; animation: rise 560ms var(--ease) both; }
.auth-box h1 { font: 600 30px/1.1 "Unbounded", sans-serif; letter-spacing: -0.035em; }
.auth-sub { margin-top: 10px; color: var(--muted); }
.auth-form { display: grid; gap: 18px; margin-top: 34px; }
.field { display: grid; gap: 8px; }
.field > span:first-child { font-weight: 500; font-size: 13px; color: var(--muted); }
.input {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--field);
  color: var(--muted); transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.input:hover { background: var(--field-2); }
.input:focus-within { box-shadow: inset 0 0 0 2px var(--pink); color: var(--pink); }
.input svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--paper); font: 400 14px/1 "Unbounded", sans-serif; }
.input input::placeholder { color: #5B585F; }
.auth-error { color: #FF8AB8; font-size: 13px; }
.auth-terms { color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-terms a, .auth-alt a { color: var(--pink); text-decoration: none; }
.auth-terms a:hover, .auth-alt a:hover { text-decoration: underline; }
.auth-btn {
  height: 52px; margin-top: 6px; border: 0; border-radius: 14px; background: var(--pink); color: var(--on-pink);
  font: 600 15px/1 "Unbounded", sans-serif; cursor: pointer; transition: transform 200ms cubic-bezier(.3, 1.45, .5, 1), filter 160ms ease;
}
.auth-btn:hover { filter: brightness(1.06); }
.auth-btn:active { transform: scale(.98); }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-alt { margin-top: 28px; text-align: center; color: var(--muted); }
.auth-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #5B585F; font-size: 12px; }
.auth-foot a { white-space: nowrap; }
.auth-foot a { text-decoration: none; }
.auth-foot a:hover { color: var(--paper); }

.auth-art { position: relative; background: var(--art); overflow: hidden; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { .auth-box { animation: none; } }
