:root {
  --color-bg: #f6f1e7;
  --color-card: #fffcf6;
  --color-band: #f0e6d6;
  --color-ink: #383026;
  --color-body: #5c5142;
  --color-muted: #7c6f5e;
  --color-border: #e6dcc8;
  --color-terracotta: #b06a45;
  --color-terracotta-dark: #96552f;
  --color-olive: #6f7a52;
  --font-serif: 'Lora', serif;
  --font-sans: 'Karla', sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.brand img {
  height: 64px;
  width: auto;
}

.kicker {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  font-weight: 700;
}

.title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  margin: 0;
  color: var(--color-ink);
}

.subtitle {
  font-size: 14.5px;
  color: var(--color-muted);
  margin: 0;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-body);
}

.field {
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fdfbf5;
  color: var(--color-ink);
  outline: none;
  width: 100%;
  font-family: var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(176, 106, 69, .16);
}

.password-wrap {
  position: relative;
}

.password-wrap .field {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}

.password-toggle:hover {
  color: var(--color-terracotta-dark);
  background: var(--color-band);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.error-box {
  background: #f5e3da;
  border: 1px solid #dbb39a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-terracotta-dark);
  font-weight: 600;
}

.btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px;
  background: var(--color-olive);
  color: #fdfbf5;
  position: relative;
  transition: transform .2s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1.5px dashed var(--color-terracotta-dark);
  opacity: 0;
  transform: scale(.96);
  transition: opacity .2s ease, transform .25s ease;
  pointer-events: none;
}

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

.btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

.footnote {
  text-align: center;
  font-size: 12.5px;
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::after {
    transition: none;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 24px;
  }

  .title {
    font-size: 26px;
  }
}
