.auth-page {
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow: hidden;
  background-color: #121212 !important;
  background-image: radial-gradient(
    circle at center,
    #1e1e1e 0%,
    #0d0d0d 100%
  ) !important;
}

.auth-page .sacred-title {
  margin-bottom: 30px !important;
  -webkit-text-stroke: 0px !important;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  text-align: center;
  cursor: default;
}

.auth-page .sacred-title span {
  display: inline-block;
  font-weight: 900;
  animation: colorPulse 2s infinite ease-in-out;
}

@keyframes colorPulse {
  0% {
    filter: brightness(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
    transform: scale(1);
  }
  50% {
    filter: brightness(1.5) drop-shadow(0 0 15px currentColor);
    transform: scale(1.05);
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
    transform: scale(1);
  }
}

.clr-1 {
  color: #ff4500 !important;
}
.clr-2 {
  color: #ff8c00 !important;
}
.clr-3 {
  color: #ffd700 !important;
}
.clr-4 {
  color: #32cd32 !important;
}
.clr-5 {
  color: #1e90ff !important;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  color: #ff8c00;
  font-size: 0.9rem;
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 90px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  outline: none;
  transition: 0.3s;
  box-sizing: border-box;
}
.form-group input:focus {
  border-color: #ffd700;
  background: rgba(255, 255, 255, 0.1);
}

.auth-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  border: 2px solid #fff;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.auth-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
}

.login-link,
.home-button-container {
  text-align: center;
  margin-top: 20px;
}
.login-link a,
.home-button {
  color: #ff8c00;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}
.login-link a:hover {
  color: #ffd700;
  text-decoration: underline;
}
.home-button {
  color: #fff;
  opacity: 0.7;
}
.home-button:hover {
  opacity: 1;
}

.error-msg {
  color: #ff4500;
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

.puzzle-grid.auth-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
  z-index: -1;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 600px), (hover: none) {
  * {
    backdrop-filter: none !important;
    filter: none !important;
  }
}
@media (max-width: 600px), (hover: none) {
  .auth-page {
    background-attachment: scroll;
  }
}

.login-link,
.register-link {
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 20px;
}

.login-link a,
.register-link a {
  color: #ff8c00;
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
}

.login-link a:hover,
.register-link a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.home-button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  background-color: #12a307;
  padding: 10px 15px;
  border-radius: 12px;
}

.home-button {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-button:hover {
  filter: brightness(1.15);
}

.sacred-title span {
  display: inline-block;
  animation:
    jump 2s infinite ease-in-out,
    colorPulse 3s infinite ease-in-out;
}

.social-login {
  margin-top: 20px;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.divider:not(:empty)::before {
  margin-right: 0.5em;
}
.divider:not(:empty)::after {
  margin-left: 0.5em;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: white;
  color: #444;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  border: none;
  width: 93%;
}

.google-btn img {
  width: 20px;
  height: 20px;
}

.google-btn:hover {
  background: #f1f1f1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.auth-container p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
  opacity: 0.9;
}

.auth-container form {
  width: 100%;
}

.auth-body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.auth-bg .puzzle-piece {
  opacity: 0.15;
  filter: brightness(0.5) contrast(1.2);
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 22px;
  color: white;
  opacity: 0.9;
}

.toggle-password:hover {
  opacity: 1;
}
