:root {
  --bg: #f6ecde;
  --bg-2: #ead8bd;
  --surface: #fffaf1;
  --surface-2: #f5e6cf;
  --text: #2f2927;
  --muted: #6f645d;
  --primary: #79171d;
  --primary-2: #5f1016;
  --primary-3: #9a2a33;
  --accent: #d4a253;
  --accent-2: #b58135;
  --border: #d8c3a4;
  --border-strong: #bba17c;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(212, 162, 83, 0.18), transparent 30%),
    radial-gradient(circle at 92% 16%, rgba(121, 23, 29, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #f3e7d6 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--primary);
}

.shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 20px 36px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf8 0%, #f7ead8 100%);
  box-shadow: 0 10px 24px rgba(47, 41, 39, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 148px;
  height: auto;
  display: block;
}

.brand-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  margin-left: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease;
}

.nav-links a:hover {
  color: var(--primary);
  border-color: var(--primary-3);
  transform: translateY(-1px);
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(140deg, var(--surface) 0%, #fff 100%);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(47, 41, 39, 0.06);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary-3);
  box-shadow: 0 0 0 3px rgba(121, 23, 29, 0.14);
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 8px 16px rgba(121, 23, 29, 0.24);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.muted {
  color: var(--muted);
}

.messages {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.messages li {
  padding: 10px 12px;
  border: 1px solid #e5d2b5;
  border-radius: 10px;
  background: #fff8ee;
  color: #5f3826;
  font-size: 14px;
}

.auth-card {
  max-width: 620px;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(165deg, #fffdf8 0%, var(--surface-2) 100%);
}

.auth-card-wide {
  max-width: 680px;
}

.auth-card h1 {
  margin-top: 0;
}

.auth-header {
  margin-bottom: 18px;
}

.auth-header h1 {
  margin: 0 0 8px;
}

.auth-btn {
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  font-size: 15px;
}

.auth-note,
.auth-switch {
  margin-top: 14px;
  font-size: 14px;
}

.auth-note a,
.auth-switch a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 760px) {
  .shell {
    padding: 16px 14px 24px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-logo {
    width: 130px;
  }
}
