/* ============================================================
   CHIRP — Auth Page Styles
   ============================================================ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: auto;
  background: linear-gradient(135deg, #1a1c2c 0%, #2b2d55 50%, #1a1c2c 100%);
}

/* Animated blobs */
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blob-float 8s ease-in-out infinite;
}
.blob1 {
  width: 500px; height: 500px;
  background: #5865f2;
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.blob2 {
  width: 400px; height: 400px;
  background: #eb459e;
  bottom: -80px; right: -80px;
  animation-delay: -3s;
}
.blob3 {
  width: 300px; height: 300px;
  background: #3ba55c;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Container */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

/* Card */
.auth-card {
  background: rgba(30, 31, 34, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-logo svg {
  width: 40px;
  height: 40px;
}
.auth-logo span {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

/* Headings */
.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}

/* Alerts */
.auth-error {
  background: rgba(242,63,67,0.15);
  border: 1px solid rgba(242,63,67,0.4);
  color: #f5a3a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  border-radius: 6px;
}
.auth-success {
  background: rgba(35,165,89,0.15);
  border: 1px solid rgba(35,165,89,0.4);
  color: #7de8a5;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Form groups */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-group .required { color: var(--text-danger); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-normal);
  font-size: 16px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(88,101,242,0.25);
}
.form-group input::placeholder { color: var(--text-muted); }

.hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Password with toggle */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 42px; }
.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.6;
  padding: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}
.toggle-pw:hover { opacity: 1; }
.toggle-pw svg { width: 18px; height: 18px; fill: currentColor; }

/* Forgot password */
.forgot-pw {
  display: block;
  font-size: 13px;
  color: var(--text-link);
  text-decoration: none;
  margin-top: 6px;
  transition: text-decoration 0.15s;
}
.forgot-pw:hover { text-decoration: underline; }

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--brand);
}
.checkbox-label a { color: var(--text-link); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

/* Switch link */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}
.auth-switch a {
  color: var(--text-link);
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .auth-card { padding: 24px 20px; }
}
