/* ============================================
   CRUSHIFY — AUTH CSS
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.auth-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(108,61,224,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(255,77,141,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

/* TABS */
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.auth-tab.active {
  background: var(--gradient);
  color: white;
}

/* HEADINGS */
.auth-card h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* GOOGLE BUTTON */
.google-btn {
  width: 100%;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.google-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* FORM */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: rgba(108,61,224,0.6);
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.25);
}

/* PASSWORD TOGGLE */
.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 48px;
}

.eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.eye-btn:hover { opacity: 1; }

/* FORGOT ROW */
.forgot-row {
  text-align: right;
  margin-bottom: 20px;
}

.forgot-link {
  font-size: 0.82rem;
  color: #B39DFC;
}

.forgot-link:hover { text-decoration: underline; }

/* FULL WIDTH BUTTON */
.full-width {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* MESSAGES */
.auth-error {
  background: rgba(255,77,77,0.1);
  border: 1px solid rgba(255,77,77,0.3);
  color: #FF6B6B;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.auth-success {
  background: rgba(77,255,128,0.1);
  border: 1px solid rgba(77,255,128,0.3);
  color: #4DFF80;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

/* SWITCH TEXT */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: #B39DFC;
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* BACK BUTTON */
.back-btn {
  background: none;
  border: none;
  color: #B39DFC;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  padding: 0;
}

.back-btn:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}