/* The login page. It can only use files in /login-assets/ — the rest of the
   site is locked until you log in. Matches the portfolio, without animations. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/login-assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/login-assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --pink: #f6b4c8;
  --hot: #ff4f7b;
  --yarn: #d4142a;
  --wine: #7d0c1c;
  --black: #170a0d;
  --white: #f5ecdc;
  --paper: #fbf5ea;
  --grey: #7a5a52;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 16px;
  background: radial-gradient(110% 80% at 75% 115%, #ff7d9f 0%, var(--pink) 60%);
  color: var(--black);
  font: 16px/1.4 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.login { width: min(100%, 420px); }

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 12vw, 4.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.lede { margin: 0.9rem 0 1.75rem; font-size: 1.05rem; }
.lede em { font-family: var(--serif); font-size: 1.2em; }

/* the form sits on a cream card, tilted like the toys on the portfolio */
.login-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 22px 34px -18px rgba(125, 12, 28, 0.5);
  rotate: -1deg;
}

#message {
  margin: 0 0 1rem;
  font: italic 400 1.15rem/1.2 var(--serif);
  color: var(--wine);
}
#message:empty { display: none; }

label { display: block; margin-bottom: 1rem; font-size: 0.85rem; font-weight: 500; }
input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--black);
  border-radius: 10px;
  background: #fff;
  color: var(--black);
  font: 400 1rem var(--sans);
}
input:focus { outline: 2px solid var(--hot); outline-offset: 2px; }

button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font: 500 0.95rem var(--sans);
  cursor: pointer;
}
button:hover { background: var(--hot); border-color: var(--hot); color: var(--black); }
button:focus-visible { outline: 2px solid var(--yarn); outline-offset: 3px; }

.tiny { margin: 1.5rem 0 0; font-size: 0.8rem; color: var(--grey); text-align: center; }
