/* ── Auth Shared Styles ── */

.auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(188, 214, 174, 0.42) 0%, rgba(188, 214, 174, 0) 34%),
    radial-gradient(circle at top right, rgba(220, 232, 206, 0.52) 0%, rgba(220, 232, 206, 0) 30%),
    linear-gradient(180deg, #f5f7ed 0%, #edf3e4 42%, #e8f0df 100%);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, rgba(251, 252, 247, 0.86) 0%, rgba(245, 248, 239, 0.92) 100%);
  padding: 2.5rem 1.5rem;
  font-family: "DM Sans", sans-serif;
  position: relative;
  overflow: hidden;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.auth-page::before {
  width: 260px;
  height: 260px;
  top: -110px;
  right: -90px;
  background: radial-gradient(circle, rgba(171, 199, 139, 0.42) 0%, rgba(171, 199, 139, 0) 72%);
}

.auth-page::after {
  width: 320px;
  height: 320px;
  bottom: -160px;
  left: -130px;
  background: radial-gradient(circle, rgba(214, 228, 191, 0.68) 0%, rgba(214, 228, 191, 0) 72%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: transparent;
  z-index: 2;
  animation: authFadeUp 0.7s ease-out;
}

.auth-page > *:not(.mobile-bg-decoration) {
  position: relative;
  z-index: 1;
}

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.auth-input {
  width: 100%;
  height: 54px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 0 1rem;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

.auth-input:focus {
  background: #fff;
  border-color: #4caf50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

.auth-submit {
  height: 56px;
  background: #419650;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(65, 150, 80, 0.25);
}

.auth-message {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0;
  text-align: center;
}

.auth-message.error { color: #d32f2f; }
.auth-message.success { color: #2e7d32; }

/* Signup Specific overrides */
.signup-page .auth-card { max-width: 520px; }
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .auth-grid { grid-template-columns: 1fr; }
}

/* Mobile Background Decoration */
.mobile-bg-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36vh;
  background:
    linear-gradient(to top, rgba(245, 247, 237, 0.96) 0%, rgba(245, 247, 237, 0.12) 100%),
    radial-gradient(circle at 20% 100%, rgba(176, 203, 141, 0.28) 0%, rgba(176, 203, 141, 0) 36%),
    radial-gradient(circle at 80% 92%, rgba(146, 181, 110, 0.2) 0%, rgba(146, 181, 110, 0) 28%);
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

@media (min-width: 768px) {
  .auth-page {
    background:
      radial-gradient(circle at top left, rgba(190, 214, 169, 0.34) 0%, rgba(190, 214, 169, 0) 28%),
      radial-gradient(circle at top right, rgba(208, 226, 188, 0.42) 0%, rgba(208, 226, 188, 0) 30%),
      linear-gradient(180deg, #f7f8f1 0%, #edf3e4 100%);
    justify-content: center;
  }

  .auth-card {
    background: white;
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(76, 110, 58, 0.09);
  }
}
