/* ===== Auth Page Specific Styles ===== */

.auth-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 500px;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 24px;
  margin: 20px auto;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  font-weight: 600;
  margin-bottom: 48px;
  transition: opacity 0.2s;
}

.auth-back:active {
  opacity: 0.4;
}

.auth-hero {
  margin-bottom: 40px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.25);
}

.auth-logo span {
  font-size: 36px;
  color: white;
}

.auth-hero h1 {
  margin-bottom: 8px;
}

.auth-hero p {
  opacity: 0.7;
  font-size: 1.05rem;
}

.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}

.tab-item {
  flex: 1;
  padding: 16px 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--text);
  opacity: 0.4;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.tab-item.active {
  opacity: 1;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-item:active {
  opacity: 0.6;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

.password-wrap {
  position: relative;
  margin-bottom: 16px;
}

.password-wrap input {
  padding-right: 52px;
  margin-bottom: 0;
}

.eye-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text);
  opacity: 0.4;
  cursor: pointer;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.eye-btn:active {
  opacity: 0.7;
}

.forgot-link {
  display: block;
  text-align: right;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.forgot-link:active {
  opacity: 0.7;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  opacity: 0.4;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
}

.switch-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-weight: 600;
}

.switch-link a {
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  cursor: pointer;
}

.checkbox-wrap input[type='checkbox'] {
  width: 24px;
  height: 24px;
  min-height: auto;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-wrap label {
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  flex: 1;
}

.input-error {
  border-color: var(--danger) !important;
}

.input-success {
  border-color: var(--success) !important;
  padding-right: 48px !important;
}

.error-msg {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: -8px;
  margin-bottom: 16px;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

.success-msg {
  color: var(--success);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: -8px;
  margin-bottom: 16px;
  width: 100%;
}

.btn-loading {
  opacity: 0.6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-loading .spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.brand-footer {
  font-size: 0.65rem;
  text-align: center;
  margin-top: 48px;
  opacity: 0.3;
}

/* ===== Landing Page Background & Glow Orbs ===== */
.landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

.landing-page .glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.landing-page .glow-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.landing-page .glow-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.2);
  }
}
