.auth-body {
  margin: 0;
  background: var(--color-bg);
  min-height: 100vh;
}

.auth-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 3.5rem 1.25rem 5rem;
}

.auth-page {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.auth-logo-img {
  height: 32px;
  width: auto;
}

/* Card */
.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  padding: 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-heading {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Flash / Errors */
.auth-alert {
  width: 100%;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #c62828;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-sizing: border-box;
}

.auth-notice {
  width: 100%;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-sizing: border-box;
}

.auth-errors {
  width: 100%;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.auth-errors p {
  margin: 0.2rem 0;
  font-size: 0.88rem;
  color: #c62828;
  text-align: center;
}

/* Legal text (sign up) */
.auth-legal {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

/* Google button */
.google-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #3c4043;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 500;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #b0b8c1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.google-btn:active {
  background: #f1f3f4;
}

/* "Or" divider */
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.83rem;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-input-group {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.auth-input-group:focus-within {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.auth-input-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0;
}

.auth-input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: #111;
  background: transparent;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: left;
  padding: 0 0.25rem;
}

/* auth submit buttons use .btn.btn--primary.btn--full from buttons.css */

/* Links */
.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.auth-link-blue {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.auth-link-blue:hover {
  text-decoration: underline;
  color: #1565c0;
}

/* Forgot password link shown below the card */
.auth-below-card {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 480px) {
  .auth-main {
    padding: 2rem 1rem 3rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .auth-heading {
    font-size: 1.2rem;
  }
}
