/* Background: luxurious pool/resort at dusk - replace URL with your asset if needed */
.login-page {
  --login-bg-url: url('/public/images/desktop_background.png');
  /* --login-overlay: rgba(30, 45, 65, 0.5); */
  --login-input-bg: rgba(255, 255, 255, 0.12);
  --login-input-border: rgba(255, 255, 255, 0.25);
  --login-button-bg: #35659E;
  --login-button-hover: #2a4f80;
  --login-content-max-width: 400px;
  --login-content-padding: 2rem;

  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 1.5rem; */
  background-image: var(--login-bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.login-page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--login-overlay) 0%,
    rgba(30, 45, 65, 0.35) 50%,
    rgba(30, 45, 65, 0.2) 100%
  );
  pointer-events: none;
}

.login-page__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--login-content-max-width);
  padding: var(--login-content-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo & Brand */
.login-page__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.login-page__logo {
  color: rgba(255, 255, 255, 0.95);
}

.login-page__brand {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.98);
  text-transform: uppercase;
}

/* Main content */
.login-page__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.login-page__heading {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
}

.login-page__description {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 400px;
}

/* Form */
.login-page__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.login-page__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
}

.login-page__input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--login-input-bg);
  border: 1px solid var(--login-input-border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-page__input-wrapper--error {
  border-color: #e57373;
  /* box-shadow: 0 0 0 2px rgba(229, 115, 115, 0.25); */
}

.login-page__input-wrapper--error:focus-within {
  border-color: #ef5350;
  /* box-shadow: 0 0 0 2px rgba(239, 83, 80, 0.3); */
}

.login-page__error {
  margin: 0;
  font-size: 0.8125rem;
  color: #ffab91;
  text-align: left;
  line-height: 1.4;
}

.login-page__input-icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.login-page__input-prefix {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.login-page__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.98);
  font-size: 1rem;
  outline: none;
}

.login-page__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-page__input:focus {
  outline: none;
}

.login-page__input-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  /* box-shadow: 0 0 0 2px rgba(47, 126, 142, 0.3); */
}

.login-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--login-button-bg);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-page__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.login-page__button:disabled {
  background: #9e9e9e;   /* grey */
  color: #f5f5f5;
  opacity: 1;
  cursor: not-allowed;
}

.login-page__button-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-page__button-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-page-spin 0.7s linear infinite;
}

@keyframes login-page-spin {
  to {
    transform: rotate(360deg);
  }
}

.p-logo {
  top: 110px;
  left: 653px;
  width: 80px;
  height: 80px;
  background: transparent;
  opacity: 0.8;
}

.poolpix-logo {
  top: 173px;
  left: 600px;
  width: 250px;
  height: 50px;
  opacity: 1;
}

.login-page__back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-page__back-home:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .login-page {
    --login-content-padding: 1.5rem;
    padding: 1rem;
  }

  .login-page__brand {
    font-size: 1.6rem;
    letter-spacing: 0.12em;
  }

  .login-page__heading {
    font-size: 1.25rem;
  }

  .login-page__description {
    font-size: 0.9rem;
  }

  .login-page__input-wrapper,
  .login-page__button {
    padding: 0.9rem 1rem;
  }
}
