/* Login/register/password-reset/email-confirmation card layout and form
 * styling. Social login (Google/Microsoft) button styling lives in its own
 * omniauth.css instead, since it's conceptually a separate concern. */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth__card {
  width: 100%;
  max-width: 26rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(26, 29, 41, 0.06);
}

.auth__card--wide {
  max-width: 34rem;
}

.auth__brand {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.auth__card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.auth__subtitle {
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth__form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.auth__link {
  color: var(--color-primary);
  text-decoration: none;
}

.auth__link:hover {
  text-decoration: underline;
}

.auth__switch {
  text-align: center;
  margin: 1.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.auth__switch a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth__switch a:hover {
  text-decoration: underline;
}

.form-errors {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #8a1f1f;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.field-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.field-row .field {
  flex: 1 1 10rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

.field input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Shared with .field input above -- selects/textareas (e.g. the custom
   field definition form's field_type select and default_value textarea)
   need the same look, not just plain <input>s. */
.field select,
.field textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.field textarea {
  resize: vertical;
}

.field--checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.field__hint {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.field-errors {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  color: #b3261e;
  font-size: 0.85rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox--terms {
  color: var(--color-text-muted);
}
