:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-soft: #f4f3f3;
  --text: #1a1c1c;
  --muted: #5f5e5e;
  --line: #c4c7c7;
  --primary: #000000;
  --success-bg: #e8f7e8;
  --success-text: #1f6b2b;
  --error-bg: #ffe9e7;
  --error-text: #8f1f1f;
}

* {
  box-sizing: border-box;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.login-header,
.login-footer {
  background: var(--bg);
}

.header-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  margin: 0;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 500;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  text-decoration: none;
  font-size: 13px;
  color: #747878;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: #1a1c1c;
}

.login-main {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  justify-content: center;
  flex: 1;
}

.side-quote {
  position: absolute;
  right: 24px;
  top: 72px;
  width: 320px;
  opacity: 0.08;
  font-family: "Newsreader", serif;
  font-size: 36px;
  line-height: 1.3;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.intro {
  margin-bottom: 36px;
}

.intro h2 {
  margin: 0 0 10px;
  font-family: "Newsreader", serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
}

.intro p {
  margin: 0;
  color: #444748;
  line-height: 1.6;
  font-size: 14px;
}

.alert {
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert.error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #f4c4be;
}

.alert.success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #bfdfc0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field .hint {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #636262;
}

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-size: 18px;
  font-family: "Newsreader", serif;
  color: #1a1c1c;
  outline: 0;
}

.field input:focus {
  border-bottom-color: #1a1c1c;
}

.btn {
  margin-top: 6px;
  border: 0;
  border-radius: 4px;
  height: 48px;
  padding: 0 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--surface-soft);
  color: var(--text);
}

.btn-secondary:hover {
  background: #ebebeb;
}

.setup-box {
  margin-top: 26px;
  border-top: 1px solid #e8e8e8;
  padding-top: 20px;
}

.setup-box h3 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-quote {
  margin: 42px 0 0;
  font-family: "Newsreader", serif;
  font-style: italic;
  color: #444748;
  line-height: 1.6;
}

.footer-quote span {
  display: block;
  margin-top: 6px;
  font-family: "Inter", Arial, sans-serif;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #747878;
}

.login-footer {
  border-top: 1px solid #e8e8e8;
  padding: 18px 24px;
  text-align: center;
  font-size: 11px;
  color: #747878;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .side-quote {
    display: none;
  }

  .intro h2 {
    font-size: 44px;
  }
}
