/* Made by Federico Dionisi for BadLab Corporation Agency */
/* © 2026 – All rights reserved. */
.auth-forgot-link,
.auth-login-return {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: rgba(247, 244, 245, 0.68);
  font: inherit;
  font-size: clamp(0.86rem, 0.8rem + 0.12vw, 0.96rem);
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 140ms ease, transform 140ms ease;
}

.auth-forgot-link {
  padding: 2px 8px 0;
}

.auth-login-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.auth-forgot-link:hover,
.auth-login-return:hover {
  color: var(--accent-bright);
  transform: translateY(-1px);
}

.auth-forgot-link:focus-visible,
.auth-login-return:focus-visible {
  outline: none;
  color: var(--text);
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.auth-reset-modal[hidden] {
  display: none;
}

.auth-modal-open {
  overflow: hidden;
}

.auth-reset-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding:
    calc(18px + var(--blc-safe-top))
    calc(18px + var(--blc-safe-right))
    calc(18px + var(--blc-safe-bottom))
    calc(18px + var(--blc-safe-left));
}

.auth-reset-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.auth-reset-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: calc(100dvh - 36px - var(--blc-safe-top) - var(--blc-safe-bottom));
  padding: clamp(24px, 1.4vw + 16px, 38px);
  border: 1px solid var(--panel-edge);
  border-radius: clamp(22px, 1.5vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%),
    rgba(9, 10, 12, 0.98);
  color: var(--text);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
  overflow: auto;
  scrollbar-gutter: stable;
}

.auth-reset-form {
  width: 100%;
  display: grid;
  gap: clamp(14px, 1vw, 18px);
  justify-items: center;
  text-align: center;
}

.auth-reset-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(209, 20, 47, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 244, 245, 0.74);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.auth-reset-close:hover {
  color: var(--text);
  border-color: rgba(255, 53, 87, 0.48);
  background: rgba(209, 20, 47, 0.1);
}

.auth-reset-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.auth-reset-close svg {
  width: 18px;
  height: 18px;
}

.auth-reset-title,
.auth-reset-page-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.32rem, 1.12rem + 0.42vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-reset-copy,
.auth-reset-page-copy {
  margin: 0;
  max-width: 34rem;
  color: rgba(247, 244, 245, 0.64);
  font-size: clamp(0.92rem, 0.84rem + 0.12vw, 1rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.auth-reset-panel .auth-form {
  gap: clamp(14px, 1vw, 18px);
}

:root[data-theme="light"] .auth-forgot-link,
:root[data-theme="light"] .auth-login-return {
  color: rgba(15, 23, 42, 0.66);
}

:root[data-theme="light"] .auth-forgot-link:hover,
:root[data-theme="light"] .auth-login-return:hover {
  color: var(--accent);
}

:root[data-theme="light"] .auth-reset-modal-backdrop {
  background: rgba(15, 23, 42, 0.24);
}

:root[data-theme="light"] .auth-reset-modal-panel {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.82)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 84px rgba(15, 23, 42, 0.18);
}

:root[data-theme="light"] .auth-reset-close {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 23, 42, 0.68);
}

:root[data-theme="light"] .auth-reset-close:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(239, 246, 255, 0.98);
  color: var(--text);
}

:root[data-theme="light"] .auth-reset-copy,
:root[data-theme="light"] .auth-reset-page-copy {
  color: rgba(15, 23, 42, 0.66);
}

@media (max-width: 640px) {
  .auth-reset-modal {
    padding:
      calc(14px + var(--blc-safe-top))
      calc(12px + var(--blc-safe-right))
      calc(14px + var(--blc-safe-bottom))
      calc(12px + var(--blc-safe-left));
  }

  .auth-reset-modal-panel {
    max-height: calc(100dvh - 28px - var(--blc-safe-top) - var(--blc-safe-bottom));
  }
}
