/* =========================================
   AUTHENTICATION PAGES (GLASSMORPHISM)
   ========================================= */

/* Override main margin for auth pages (no secondary nav) */
.auth-page-container~main,
main:has(.auth-page-container) {
  margin-top: 60px !important;
}

/* Self-contained fix: When auth-page-container is present, adjust via negative margin */
.auth-page-container {
  min-height: calc(100vh - 60px);
  margin-top: -45px;
  /* Compensate for the extra margin from secondary nav absence */
  padding-top: 45px;
  /* Add it back as padding */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* Background animated blobs */
.auth-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -10%;
  left: -10%;
  animation: float 20s infinite alternate;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #6b21a8;
  bottom: -5%;
  right: -5%;
  animation: float 15s infinite alternate-reverse;
}

/* Glass Card */
.auth-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}

.auth-header {
  margin-bottom: 2.5rem;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
}

.auth-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.auth-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Form Styling */
.auth-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

.auth-cta {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1rem;
  border-radius: 12px;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(30, 136, 229, 0.3);
}

/* Social Login */
.social-login-separator {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.social-login-separator::before,
.social-login-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.social-login-separator span {
  padding: 0 1rem;
}

.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.social-btn.google {
  background: #db4437;
  border-color: #db4437;
}

.social-btn.facebook {
  background: #4267B2;
  border-color: #4267B2;
}

.social-btn.apple {
  background: #000;
  border-color: #333;
}

.social-btn svg {
  margin-right: 0.5rem;
}

.auth-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(30px, 50px);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .auth-card {
    padding: 2rem;
  }
}