/* ACCOUNT PAGES */
.auth-page {
  min-height: calc(100vh - 56px); /* 56px = Bootstrap navbar default height */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background: var(--cream, #f5f0eb);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 0.5px solid var(--cream-border, #e8ddd5);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 4px 32px rgba(80, 40, 20, 0.10), 0 1.5px 6px rgba(80,40,20,0.06);
  padding: 2.25rem 2rem 1.75rem;
}

.auth-title,
.auth-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--ink, #1a1008);
  text-align: center;
}

.auth-sub {
  color: var(--ink-muted, #7a6555);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  text-align: center;
}

.auth-form {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
}

.auth-field {
  margin-bottom: 1rem;
  position: relative;
}

.auth-field label {
  display: none;
}

.auth-field.show-label label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink, #1a1008);
  font-weight: 500;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  border: 1.5px solid var(--cream-border, #e8ddd5);
  border-radius: var(--radius-md, 10px);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink, #1a1008);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.auth-field input::placeholder {
  color: var(--ink-muted, #b0a090);
  font-size: 0.93rem;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: rgba(196, 81, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 81, 42, 0.12);
}

.auth-field-password {
  position: relative;
}

.auth-field-password input {
  padding-right: 2.6rem;
}

.auth-field-password .toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink-muted, #a09080);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.auth-field-password .toggle-password:hover {
  color: var(--terra, #c4512a);
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.1rem 0 1.2rem;
  font-size: 0.85rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink, #1a1008);
  cursor: pointer;
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--terra, #c4512a);
  flex-shrink: 0;
}

.auth-forgot {
  color: var(--terra, #c4512a);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.auth-forgot:hover {
  color: var(--terra-dark, #8c3318);
  text-decoration: underline;
}

.auth-form button[type="submit"],
.auth-form input[type="submit"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--terra, #c4512a);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill, 999px);
  padding: 0.72rem 1rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  margin-top: 0.15rem;
}

.auth-form button[type="submit"]:hover,
.auth-form input[type="submit"]:hover {
  background: var(--terra-dark, #a83f20);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(196, 81, 42, 0.28);
}

.auth-form button[type="submit"]:active,
.auth-form input[type="submit"]:active {
  transform: scale(0.98);
  box-shadow: none;
}

.auth-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.5rem;
}

.auth-links {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-muted, #7a6555);
  text-align: center;
}

.auth-links a {
  color: var(--terra, #c4512a);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  color: var(--terra-dark, #8c3318);
  text-decoration: underline;
}

.auth-errors,
.auth-alert,
ul.errorlist {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md, 10px);
  border: 0.5px solid rgba(140, 51, 24, 0.22);
  background: rgba(240, 201, 184, 0.42);
  color: var(--terra-dark, #8c3318);
  font-size: 0.88rem;
  list-style: none;
}

.auth-help {
  color: var(--ink-muted, #7a6555);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.auth-divider {
  height: 1px;
  border: 0;
  background: var(--cream-border, #e8ddd5);
  margin: 1rem 0;
}

@media (max-width: 576px) {
  .auth-page {
    padding: 1.25rem 1rem;
  }
  .auth-card {
    padding: 1.5rem 1.1rem 1.25rem;
    border-radius: var(--radius-md, 10px);
  }
}