/* Login/signup pages - loaded after style.css, reuses its variables and
   .btn / .text-input / .field-label / .muted / .brand classes. */

.auth-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 32px 0;
}

.auth-card {
  width: 360px;
  max-width: calc(100vw - 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
}

.auth-card-wide {
  width: 440px;
}

.auth-brand {
  justify-content: center;
  margin-bottom: 20px;
}

.auth-title {
  font-size: 20px;
  margin: 0 0 18px;
  text-align: center;
  color: var(--text);
}

.auth-check-email-text {
  text-align: center;
  line-height: 1.55;
  margin: 0 0 6px;
}

.auth-submit {
  width: 100%;
  margin-top: 18px;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
}

.auth-switch a {
  color: var(--accent);
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
}

.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-row-2 .field-label {
  margin-top: 12px;
}

.username-feedback {
  min-height: 16px;
  font-size: 12.5px;
  margin: 6px 2px 0;
}

.username-feedback.ok {
  color: var(--accent);
}

.username-feedback.bad {
  color: var(--danger);
}

.username-feedback.checking {
  color: var(--text-muted);
}

select.text-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237C86A6' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.google-btn-row {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 12px;
}

.agree-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}

.agree-terms-row input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.agree-terms-row a {
  color: var(--accent);
  text-decoration: none;
}

.agree-terms-row a:hover {
  text-decoration: underline;
}