/* ============================================================
   LOGIN & SIGN UP SCREEN
   ============================================================ */
.auth-screen {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

/* Floating orbs behind auth card */
.auth-screen::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 25, 32, 0.18) 0%, transparent 70%);
  top: 10%;
  left: -15%;
  filter: blur(40px);
  animation: orbFloat1 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.auth-screen::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  bottom: 15%;
  right: -10%;
  filter: blur(50px);
  animation: orbFloat2 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.2); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 30px) scale(1.15); }
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.auth-header .auth-logo-img {
  width: 260px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: 0 12px 32px rgba(214, 25, 32, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  animation: logoFloat 4s ease-in-out infinite alternate;
}

.auth-header .auth-logo-img:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 24px 48px rgba(214, 25, 32, 0.32), 0 10px 20px rgba(0, 0, 0, 0.12);
}

@keyframes logoFloat {
  0% {
    transform: translateY(0);
    box-shadow: 0 12px 32px rgba(214, 25, 32, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
  }
  100% {
    transform: translateY(-8px);
    box-shadow: 0 24px 40px rgba(214, 25, 32, 0.28), 0 8px 18px rgba(0, 0, 0, 0.09);
  }
}

.auth-header h2 {
  font-size: 2rem;
  color: var(--primary-deep);
  font-weight: 800;
}

.auth-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 4px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(214, 25, 32, 0.06);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.05rem;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.auth-tab-btn.active {
  color: var(--primary);
}
.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(214, 25, 32, 0.5);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  color: #ffffff;
  transition: all var(--dur) var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.form-control:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(214, 25, 32, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
select.form-control option {
  background-color: var(--bg-dark);
  color: #ffffff;
}
/* Hide labels on auth screen to match mockup, but keep them for onboarding */
#auth-screen .auth-card .form-group label:not(.checkbox-label) {
  display: none;
}

.form-row {
  display: flex;
  gap: 12px;
}
.form-row .form-group {
  flex: 1;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  margin-top: 3px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(214, 25, 32, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::after {
  left: 120%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(214, 25, 32, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:active {
  transform: translateY(0);
}

/* ============================================================

/* ============================================================
   SOCIAL LOGIN BUTTONS
   ============================================================ */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-social {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.btn-social:hover {
  transform: translateY(-2px);
}

.btn-google {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #1e293b;
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 23, 42, 0.2);
}

.btn-apple {
  background: #000000;
  border: 1px solid #000000;
  color: #ffffff;
}

.btn-apple:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============================================================

/* ============================================================
   ONBOARDING
   ============================================================ */
.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  position: relative;
}

.onboarding-progress::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.onboarding-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
}

.onboarding-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}

.onboarding-step.active {
  color: #ffffff;
}

.onboarding-step.active span {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(214, 25, 32, 0.4);
}

.onboarding-step.done span {
  background: var(--success);
  color: #fff;
}

.onboarding-step.done {
  color: var(--success);
}

/* ============================================================

/* ============================================================
   ANIMATED GLOSSY SWEEP FOR AUTH CARD
   ============================================================ */
.auth-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  right: auto;
  bottom: auto;
  height: 100%;
  width: 150%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 1;
  animation: glassShine 6s ease-in-out infinite;
}

@keyframes glassShine {
  0% { left: -150%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

/* ============================================================
