/* =========================================
   AUTH PAGE STYLES
   ========================================= */

/* --- MAIN CONTENT WRAPPER --- */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 20px 80px; /* Top padding for fixed navbar */
  width: 100%;
}

/* Noise Texture */
.main-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- ANIMATED BACKGROUND SHAPES --- */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  animation: float 10s infinite ease-in-out;
}
.shape-1 {
  top: 10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(39, 217, 83, 0.5), transparent 70%);
}
.shape-2 {
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 100, 40, 0.5), transparent 70%);
  animation-delay: 2s;
}
.shape-3 {
  top: 40%;
  left: 60%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05),
    transparent 60%
  );
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}

/* --- AUTH CARD --- */
.auth-wrapper {
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 10;
}

.brand-header {
  text-align: center;
  margin-bottom: 25px;
}
.form-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 5px;
}
.form-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Tabs */
.tab-group {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.tab-btn:hover:not(.active) {
  color: white;
}

/* Forms */
.auth-form {
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.auth-form.active {
  display: block;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.input-wrapper {
  position: relative;
}
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: white;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
}
.form-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.form-input:focus {
  border-color: var(--primary);
  background: rgba(39, 217, 83, 0.05);
  box-shadow: 0 0 0 4px rgba(39, 217, 83, 0.1);
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}
.password-toggle:hover {
  color: white;
}

.form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.85rem;
}
.check-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}
.check-group input {
  accent-color: var(--primary);
}
.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.forgot-link:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: black;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(39, 217, 83, 0.2);
}
.btn-submit:hover {
  background: #20b846;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(39, 217, 83, 0.3);
}

.auth-terms-text {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.auth-terms-text a {
  color: var(--primary);
  text-decoration: none;
}
.auth-terms-text a:hover {
  text-decoration: underline;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 480px) {
  .main-content {
    padding: 110px 15px 60px;
  }
  .auth-card {
    padding: 28px 20px;
    border-radius: 18px;
  }
  .form-title {
    font-size: 1.5rem;
  }
  .form-subtitle {
    font-size: 0.85rem;
  }
  .tab-btn {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
  .form-extras {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .btn-submit {
    padding: 13px;
    font-size: 0.95rem;
  }
  /* Reduce background shapes on mobile */
  .shape-1 {
    width: 250px;
    height: 250px;
  }
  .shape-2 {
    width: 200px;
    height: 200px;
  }
  .shape-3 {
    display: none;
  }
}
