/* ============================================
   GRIND & GLOW — Auth Pages (Login / Signup)
   ============================================ */

.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.auth-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.auth-blob-1 {
  width: 400px; height: 400px;
  background: var(--pink-100);
  top: -100px; right: -100px;
}
.auth-blob-2 {
  width: 320px; height: 320px;
  background: var(--pink-200);
  opacity: 0.5;
  bottom: -80px; left: -80px;
}
body.dark .auth-blob-1 { background: rgba(255,123,172,0.08); }
body.dark .auth-blob-2 { background: rgba(255,123,172,0.05); }

/* ---- AUTH CARD ---- */
.auth-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.5s ease both;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.auth-header h1 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.auth-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---- FORM ---- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255, 123, 172, 0.15);
}
.form-group input::placeholder { color: var(--text-muted); }

/* Password wrapper with eye toggle */
.input-wrapper {
  position: relative;
}
.input-wrapper input {
  padding-right: 2.8rem;
}
.toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
  transition: var(--transition);
  padding: 0.2rem;
}
.toggle-pw:hover { opacity: 1; }

/* Error messages */
.form-error {
  font-size: 0.8rem;
  color: #d9534f;
  min-height: 1rem;
}

/* Submit button */
.auth-form .btn-primary {
  margin-top: 0.5rem;
}

/* Switch link */
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-switch a {
  color: var(--accent-dark);
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* Demo hint box */
.demo-hint {
  margin-top: 1.25rem;
  background: var(--accent-light);
  border: 1px dashed var(--pink-300);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
