.otp-page {
  --otp-bg-url: url('/public/images/desktop_background.png');
  /* --otp-overlay: rgba(30, 45, 65, 0.5); */
  --otp-button-bg: #35659E;
  --otp-button-hover: #2a4f80;
  --otp-content-max-width: 420px;
  --otp-content-padding: 2rem;

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

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

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

.otp-page__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

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

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

.otp-page__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

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

.otp-page__description {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.otp-page__phone {
  font-weight: 600;
}

.otp-page__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  margin: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  border-radius: 4px;
}

.otp-page__edit:hover {
  color: #fff;
}

.otp-page__edit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.otp-page__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.otp-page__error {
  margin: 0;
  font-size: 0.875rem;
  color: #ffab91;
  text-align: center;
  line-height: 1.4;
  max-width: 320px;
}

.otp-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  padding: 1rem 1.5rem;
  background: var(--otp-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;
}

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

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

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

.otp-page__button:disabled:hover {
  background: #9e9e9e;
}

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

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

.otp-page__resend {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.otp-page__resend-link {
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.98);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.otp-page__resend-link:hover:not(:disabled) {
  text-decoration: underline;
}

.otp-page__resend-link:disabled {
  cursor: default;
  opacity: 0.8;
}

.otp-page__timer {
  font-variant-numeric: tabular-nums;
}

.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;
}

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

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

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

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