:root {
  color-scheme: light;
  --ink: #17110f;
  --muted: #6a5a52;
  --paper: #fff8ec;
  --snow: #fffdf7;
  --red: #c51628;
  --red-deep: #8f101e;
  --green: #114a35;
  --green-deep: #09291f;
  --gold: #d7a946;
  --line: rgba(77, 46, 34, 0.16);
  --shadow: 0 24px 60px rgba(44, 21, 14, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 248, 236, 0.96)),
    radial-gradient(circle at 8% 4%, rgba(197, 22, 40, 0.13), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(17, 74, 53, 0.18), transparent 30%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.8px);
  background-size: 84px 84px, 136px 136px;
  background-position: 0 0, 28px 42px;
  opacity: 0.34;
  animation: snowDrift 24s linear infinite;
}

a {
  color: inherit;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.54fr);
  min-height: 100vh;
}

.auth-art {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: clamp(28px, 6vw, 72px);
  color: white;
  background: var(--green-deep);
}

.auth-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 41, 31, 0.22), rgba(9, 41, 31, 0.86)),
    linear-gradient(90deg, rgba(9, 41, 31, 0.68), transparent);
}

.auth-art-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.auth-art h1,
.auth-card h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.94;
}

.auth-art p,
.auth-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
  line-height: 1.65;
}

.auth-card p {
  color: var(--muted);
}

.brand {
  position: absolute;
  left: clamp(24px, 6vw, 70px);
  top: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.auth-panel {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 64px);
}

.auth-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--red-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

form {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(77, 46, 34, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
  letter-spacing: 0;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--red);
  color: white;
  box-shadow: 0 12px 24px rgba(197, 22, 40, 0.22);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.auth-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--red-deep);
  font-weight: 800;
  line-height: 1.45;
}

.auth-message.success {
  color: var(--green);
}

@keyframes snowDrift {
  to {
    background-position: 70px 420px, -90px 540px;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 360px;
  }

  .brand {
    left: 24px;
  }
}
