.auth-container {
  margin: -3rem -1.5rem 0 -1.5rem;
  width: calc(100% + 3rem);
  min-height: calc(100vh - 150px);

  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9)),
    url("https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: rgba(25, 25, 25, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 1rem !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.auth-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.auth-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(25, 25, 25, 0.95) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.auth-image-text {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
}

/* Glassmorphism inputs */
.auth-card .glass-input {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

.auth-card .glass-input:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #198754 !important;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
  color: #fff !important;
}

/* Floating Label Specific Styling */
.auth-card .form-floating label {
  color: rgba(255, 255, 255, 0.65) !important;
  padding-left: 1rem;
}

.auth-card .form-floating > .form-control:focus ~ label,
.auth-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: rgba(255, 255, 255, 0.85) !important;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Password Toggle Button */
.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #fff;
}

.password-toggle:focus {
  outline: none;
  box-shadow: none;
}

/* Button animation */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 768px) {
  .auth-container {
    margin: -1.5rem -1.5rem 0 -1.5rem;
    width: calc(100% + 3rem);
    min-height: calc(100vh - 100px);
  }
}
