main {
  background-size: 35%;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.blobs-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.bg-blur-pulse {
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  background-color: var(--main-color-transparent);
  filter: blur(64px);
  border-radius: 9999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.top-right-blur-pulse {
  position: absolute;
  top: 25%;
  right: -12rem;
  width: 24rem;
  height: 24rem;
  background-color: var(--main-color-transparent);
  filter: blur(64px);
  border-radius: 9999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 0.7s;
}

.bottom-left-blur-pulse {
  position: absolute;
  bottom: 25%;
  left: -12rem;
  width: 24rem;
  height: 24rem;
  background-color: var(--main-color-transparent);
  filter: blur(64px);
  border-radius: 9999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1s;
}

#auth-page {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  user-select: none;
}

.auth-switcher::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(47.5%);
  width: 8.49rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-color-1), var(--gradient-color-2));
  transition: transform 0.3s ease
}

.auth-form.auth-type-login .auth-switcher::after {
  transform: translateX(159%);
  background: linear-gradient(270deg, var(--gradient-color-1), var(--gradient-color-2));
}

.auth-register, .auth-login {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6.875rem;
  padding: 0.75rem;
  border-radius: 12px 12px 0 0;
  border: 1px rgba(255, 255, 255, 0.1) solid;
  cursor: pointer;
}

/* Shared Auth Form Styles for Login */
.auth-form {
  width: 26rem;
  padding: 2.5rem 2rem 1rem;
  background: var(--bg-card-drk);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  transition: all 0.3s ease
}

/* Input Wraps for Login */
.auth-form .input-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.5rem 0;
  transition: margin 0.3s;
  position: relative;
}

/* Hide Signup Fields in Login Mode */
.auth-form #auth-nickname-wrap,
.auth-form #auth-email-wrap,
.auth-form #auth-password-repeat-wrap {
  visibility: hidden;
}

.auth-form-wrapper {
  margin: 0 1rem;
}

/* Input Fields */
.auth-input-field {
  font-family: 'Inter';
  padding: 1.2rem 1.2rem 1.2rem 3rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  background-color: var(--input-background);
  border: 1px rgba(255, 255, 255, 0.1) solid;
  color: var(--prmary-text);
  width: 100%;
  user-select: none;
}

.auth-input-field::placeholder {
  color: var(--input-placeholder);
}

/* Input Icons */
.auth-form .input-icon, 
.auth-form #auth-action-password, 
.auth-form #auth-action-password-repeat {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.auth-form #auth-action-password, 
.auth-form #auth-action-password-repeat {
  left: 21rem;
  background-image: url("/assets/icons/eye-on.svg");
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 1000;
  color: white;
}

.auth-form #auth-action-password:hover, 
.auth-form #auth-action-password-repeat:hover {
  transform: scale(1.05);
}

/* Headings */
.auth-header {
  margin: 0;
  font-weight: 700;
  font-size: 2.6rem;
  background: linear-gradient(140deg, var(--gradient-color-1), var(--gradient-color-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-type-login .auth-header {
  background: linear-gradient(230deg, var(--gradient-color-1), var(--gradient-color-2));
  background-clip: text;
}

/* Buttons */
.auth-form .btn-solid {
  font-family: 'Inter';
  font-size: 1rem;
  width: 100%;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--gradient-color-1), var(--gradient-color-2));
  color: white;
  border-radius: 10rem;
  padding: 0.125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-form .btn-solid .btn-text {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--dark-bg);
  text-align: center;
  border-radius: 10rem;
  padding: 0.69rem;
  transition: all 0.2s;
  overflow: hidden;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  color: white;
}

.auth-form .btn-solid:hover .btn-text {
  background: var(--hover-button);
}

.auth-type-login .input-wrap {
  margin: 0.65rem 0;
}

.auth-type-register #auth-nickname-wrap,
.auth-type-register #auth-email-wrap,
.auth-type-register #auth-password-repeat-wrap {
  visibility: visible;
  margin-top: 0.3rem;
  opacity: 1;
  pointer-events: all;
  transition: margin 0.3s, opacity 0.3s 0.3s, visibility 0.3s 0.3s;
}

.auth-type-register #auth-action-password-repeat {
  visibility: visible;
}

.auth-type-login #auth-nickname-wrap,
.auth-type-login #auth-email-wrap,
.auth-type-login #auth-password-repeat-wrap {
  visibility: hidden;
  margin-top: -4.4rem;
  opacity: 0;
  pointer-events: none;
  transition: margin 0.3s 0.3s, opacity 0.3s, visibility 0.3s;
}

.auth-type-login #auth-action-password-repeat {
  visibility: hidden;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: end;
}

#auth-forgot-password {
  display: none;
  padding-bottom: 1px
}
#auth-forgot-password a:hover {
  padding-bottom: 0;
  border-bottom: 1px solid currentColor;
}

#auth-error {
  position: relative;
  z-index: -1;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: red;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 0.2s, transform 0.2s;
}

#auth-error.active {
  opacity: 1;
  transform: translateY(0);
}

/* reCAPTCHA Container Styles */
#auth-captcha {
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ensure reCAPTCHA widget is properly styled */
.g-recaptcha {
  transform: scale(0.95);
  transform-origin: center;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .g-recaptcha {
    transform: scale(0.85);
  }
}

@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.75);
  }
}

.auth-verification-container {
  text-align: center;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.auth-verification-email-icon {
  padding: 3rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--gradient-color-1), var(--gradient-color-2));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease
}

.auth-verification-email-icon img {
  width: 3rem;
  height: 3rem;
}

.auth-verification-container h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(140deg, var(--gradient-color-1), var(--gradient-color-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-verification-container p {
  margin: 0.5rem 0;
  color: var(--prmary-text);
  line-height: 1.5;
}

.auth-email-display {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1rem auto;
  max-width: 90%;
  word-break: break-all;
  font-weight: 500;
}

.auth-verification-instructions {
  font-size: 0.9rem;
  opacity: 0.9;
}

.auth-verification-icon {
  background: linear-gradient(90deg, var(--gradient-color-1), var(--gradient-color-2));
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-verification-icon img {
  width: 2rem;
  height: 2rem;
}

.auth-verification-message {
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for verification screen */
@media (max-width: 768px) {
  .auth-email-display {
    max-width: 95%;
    font-size: 0.85rem;
  }
  
  .auth-verification-container h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .auth-verification-container {
    padding: 0.5rem 0;
  }
  
  .auth-verification-container h2 {
    font-size: 1.4rem;
  }
  
  .auth-verification-instructions {
    font-size: 0.85rem;
  }
}


.auth-popup-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(1px) brightness(80%);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease, background 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.auth-popup-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.auth-popup {
  border: 1px solid rgba(255, 255, 255, 0.1); 
  background: var(--bg-card-drk);
  border-radius: 2rem;
  backdrop-filter: blur(8px);
  position: relative;
  box-sizing: border-box;
  width: 90vw;
  max-width: 1024px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer and Edge */
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.auth-popup-container.active .auth-popup {
  transform: translateY(0) scale(1);
}

.auth-popup::-webkit-scrollbar {
  display: none;
}

.auth-popup-close {
  position: sticky;
  top: 1rem;
  right: 1rem;
  z-index: 16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card-drk-snd);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-left: auto;
  margin-top: -3rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-popup-close.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.auth-popup-close:hover {
  background: var(--bg-card-drk);
}

.auth-popup-close img {
  width: 1.5rem;
  height: 1.5rem;
}

.auth-popup-content {
  padding: 1.5rem;
}

@media (max-width: 900px) {
  #auth-page {
    margin: 4rem 0 5rem;
  }
}

@media (max-width:680px) {
  #auth-page:has(.auth-form.auth-type-register) {
    margin-top: 40px;
  }
  #auth-page {
    margin: 4rem 0 9rem;
  }
}

@media (max-width:485px) {
  #auth-page {
    margin: 4rem 2rem 11rem;
  }
  .auth-switcher::after {
    display: none;
  }
  #auth-action-password,
  #auth-action-password-repeat {
    display: none;
  }
}