:root {
  --deep-earth: #5D4037;
  --warm-coral: #E8836B;
  --warm-brown: #8D6E63;
  --cream: #FAF8F6;
  --border: #E6DAD1;
  --body-text: #7D6B65;
  --warm-rust: #C95A4A;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--deep-earth);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

main {
  width: 100%;
  max-width: 420px;
}

.wordmark {
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  color: var(--deep-earth);
  margin-bottom: 32px;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

p {
  color: var(--body-text);
  line-height: 1.5;
  margin: 0 0 20px;
  font-size: 15px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--deep-earth);
  margin-bottom: 6px;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--deep-earth);
  background: var(--cream);
  margin-bottom: 16px;
}

input:focus {
  outline: 2px solid var(--warm-coral);
  outline-offset: 1px;
}

button {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-primary {
  background: var(--warm-coral);
  color: #FFFFFF;
}

.button-secondary {
  background: transparent;
  color: var(--deep-earth);
  border: 1px solid var(--border);
  margin-top: 10px;
}

.button-danger {
  background: var(--warm-rust);
  color: #FFFFFF;
}

.button-link {
  background: none;
  border: none;
  color: var(--warm-coral);
  font-weight: 700;
  font-size: 14px;
  width: auto;
  padding: 0;
}

.field-error {
  color: var(--warm-rust);
  font-size: 14px;
  margin: -10px 0 16px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.status-row:last-of-type {
  border-bottom: none;
}

.status-row span:first-child {
  color: var(--body-text);
}

.status-row span:last-child {
  color: var(--deep-earth);
  font-weight: 700;
  text-align: right;
}

.actions {
  margin-top: 24px;
}

[hidden] {
  display: none !important;
}

.spinner {
  text-align: center;
  color: var(--body-text);
  font-size: 15px;
  padding: 20px 0;
}

.signed-in-email {
  font-size: 13px;
  color: var(--body-text);
  text-align: center;
  margin-top: 20px;
}
