/* Room & Road sign-in: an Atlanta street at golden hour under a navy wash, the R&R seal, and a white card. */

:root {
  --navy: #071d3b;
  --navy-deep: #04142b;
  --red: #d92f36;
  --red-deep: #b8242a;
  --ink: #071d3b;
  --muted: #626d7b;
  --cream: #f6f0e5;
  --line: #d4d8dd;
  --clay: #b3262c;
  --clay-bg: #fcedee;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--navy); -webkit-font-smoothing: antialiased; }

.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: 32px;
  padding: 32px clamp(16px, 5vw, 72px);
  background:
    linear-gradient(100deg, rgba(7, 29, 59, .55) 0%, rgba(7, 29, 59, .72) 55%, rgba(7, 29, 59, .9) 100%),
    url("/assets/brand/neighborhood.jpg") center / cover no-repeat;
}

.brand-side { display: grid; place-items: center; }
/* The emblem is always tilted 20 degrees counterclockwise. */
.emblem { width: min(420px, 80%); height: auto; opacity: .92; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .25)); transform: rotate(-20deg); }

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 34px 26px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.logo { width: 132px; height: auto; display: block; }
h1 { margin: 6px 0 2px; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.15; color: var(--navy); }
.intro { margin: 0; color: var(--muted); font-size: 14px; }

.form { display: flex; flex-direction: column; gap: 6px; }
.form[hidden] { display: none; }
label { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
button:focus-visible, a:focus-visible, .check input:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; margin: 0; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); }

button[type="submit"] {
  margin-top: 12px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--red-deep); }
button[type="submit"]:disabled { opacity: .7; cursor: wait; }
button.link { align-self: center; margin-top: 4px; padding: 6px; border: 0; background: none; color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.message { margin: 6px 0 0; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; border-radius: 8px; background: #edf1f5; color: var(--navy); }
.message.error { background: var(--clay-bg); color: var(--clay); }

.foot { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--navy); }

.login.plain { grid-template-columns: minmax(0, 440px); justify-content: center; }

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; padding: 24px 16px; align-content: start; }
  .brand-side { padding-top: 8px; }
  .emblem { width: 150px; }
  .panel { padding: 24px 20px 18px; }
}
