/* Auth page specific styles */

.auth-body {
  background:
    linear-gradient(135deg, rgba(243, 237, 228, 0.95), rgba(243, 237, 228, 0.8)),
    url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&h=900&fit=crop&q=70&auto=format') center/cover fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-wrap {
  width: 100%;
  max-width: 460px;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brown);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: var(--cream-light);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.back-link:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.auth-card {
  background: var(--cream-light);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: fadeUp 0.5s var(--transition);
}

.auth-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(80, 112, 56, 0.25);
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  background: var(--cream);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 20px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s var(--transition);
}

.auth-tab.active {
  background: var(--green);
  color: var(--cream-light);
  box-shadow: 0 4px 10px rgba(80, 112, 56, 0.3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}

.auth-form.hidden { display: none; }

.auth-err {
  color: var(--red-accent);
  font-size: 13px;
  font-weight: 700;
  background: rgba(177, 52, 52, 0.08);
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  display: none;
}
.auth-err.show { display: block; }

.auth-btn {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream-light);
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(80, 112, 56, 0.35);
  transition: all 0.3s var(--transition);
  margin-top: 4px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(80, 112, 56, 0.5);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .auth-card { padding: 26px 22px; }
  .auth-card h1 { font-size: 21px; }
}

/* === Divider + Google button === */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(80, 112, 56, 0.2);
}

.google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 14px;
  padding: 13px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s var(--transition);
  box-shadow: var(--shadow-sm);
}
.google-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.google-btn:disabled { opacity: 0.6; cursor: not-allowed; }
