/* Authentication Pages */
.auth-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(40, 105, 223, 0.2),
      transparent 30%
    ),
    radial-gradient(circle at 10% 85%, rgba(31, 77, 173, 0.2), transparent 32%),
    linear-gradient(135deg, var(--background-deep), #0b1832 60%, #091329);
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(71, 112, 196, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 112, 196, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
}
.auth-background-glow {
  position: absolute;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.auth-background-glow--left {
  left: -10rem;
  bottom: -10rem;
  background: rgba(40, 105, 223, 0.24);
}
.auth-background-glow--right {
  top: -11rem;
  right: -8rem;
  background: rgba(244, 197, 66, 0.1);
}
.auth-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  align-items: center;
  gap: clamp(3rem, 8vw, 6rem);
  width: min(100%, 1180px);
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 580px;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  text-decoration: none;
}
.auth-logo-image {
  display: block;
  width: 220px;
  height: auto;
  transition:
    filter 150ms ease,
    transform 150ms ease;
}
.auth-logo:hover .auth-logo-image {
  filter: brightness(1.08);
  transform: scale(1.03);
}
.auth-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(244, 197, 66, 0.55);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.auth-brand h1 {
  max-width: 620px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1;
}
.auth-brand > p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.auth-benefits {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
.auth-benefit {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.auth-benefit-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(91, 143, 243, 0.35);
  border-radius: 0.75rem;
  background: rgba(40, 105, 223, 0.18);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}
.auth-benefit div {
  display: grid;
  gap: 0.2rem;
}
.auth-benefit strong {
  font-size: 0.95rem;
}
.auth-benefit div span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.auth-card-wrapper {
  width: 100%;
}
.auth-card {
  position: relative;
  width: 100%;
  padding: 2.5rem;
  border: 1px solid rgba(91, 143, 243, 0.3);
  border-radius: var(--radius-extra-large);
  background: linear-gradient(
    145deg,
    rgba(28, 41, 69, 0.98),
    rgba(15, 25, 46, 0.98)
  );
  box-shadow: var(--shadow-large);
  backdrop-filter: blur(18px);
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 2rem;
  left: 2rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.auth-card-header {
  margin-bottom: 1.75rem;
  text-align: center;
}
.auth-card-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--blue-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.auth-card-header h2 {
  margin-bottom: 0.5rem;
  font-size: 2.15rem;
}
.auth-card-header p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.auth-form {
  display: grid;
  gap: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-group {
  display: grid;
  gap: 0.45rem;
}
.form-group label {
  color: #dce5f7;
  font-size: 0.82rem;
  font-weight: 700;
}
.form-group input {
  width: 100%;
  min-height: 50px;
  padding: 0 0.95rem;
  border: 1px solid rgba(101, 128, 181, 0.45);
  border-radius: var(--radius-medium);
  outline: none;
  background: rgba(7, 14, 27, 0.72);
  color: var(--text);
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}
.form-group input::placeholder {
  color: var(--text-subtle);
}
.form-group input:hover {
  border-color: rgba(91, 143, 243, 0.72);
}
.form-group input:focus {
  border-color: var(--accent);
  background: rgba(8, 18, 36, 0.95);
  box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.12);
}
.form-group input.input-error {
  border-color: var(--danger);
}
.form-group input.input-error:focus {
  box-shadow: 0 0 0 4px rgba(255, 116, 116, 0.12);
}
.form-error {
  margin-bottom: 0;
  color: var(--danger);
  font-size: 0.76rem;
  line-height: 1.4;
}
.auth-alert {
  margin-bottom: 1.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 116, 116, 0.34);
  border-radius: var(--radius-medium);
  background: rgba(255, 116, 116, 0.1);
  color: #ffb2b2;
  font-size: 0.82rem;
  line-height: 1.5;
}
.auth-alert--success {
  border-color: rgba(82, 199, 122, 0.34);
  background: rgba(82, 199, 122, 0.1);
  color: var(--success);
}
.auth-submit {
  min-height: 52px;
  margin-top: 0.25rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-medium);
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: #171717;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(244, 197, 66, 0.18);
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}
.auth-submit:hover {
  transform: translateY(-2px);
  background: var(--accent-light);
  box-shadow: 0 16px 34px rgba(244, 197, 66, 0.25);
}
.auth-submit:active {
  transform: translateY(0);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0 1rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.auth-divider span {
  color: var(--text-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}
.auth-switch {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}
.auth-switch a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}
.auth-home-link {
  display: block;
  margin-top: 1rem;
  color: var(--blue-light);
  font-size: 0.8rem;
  text-align: center;
  text-decoration: none;
}
.auth-home-link:hover {
  color: #8cb1ff;
}
@media (max-width: 980px) {
  /* Authentication */
  .auth-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 650px;
  }
  .auth-brand {
    align-items: center;
    max-width: none;
    text-align: center;
  }
  .auth-logo {
    margin-bottom: 1rem;
  }
  .auth-brand > p {
    margin-inline: auto;
  }
  .auth-benefits {
    display: none;
  }
  .auth-card-wrapper {
    max-width: 560px;
    margin-inline: auto;
  }
}
@media (max-width: 620px) {
  /* Authentication */
  .auth-page {
    align-items: flex-start;
    padding: 1.75rem 1rem;
  }
  .auth-container {
    gap: 2rem;
  }
  .auth-logo {
    margin-bottom: 0.75rem;
  }
  .auth-logo-image {
    width: 190px;
  }
  .auth-brand h1 {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }
  .auth-brand > p {
    font-size: 0.95rem;
  }
  .auth-card {
    padding: 2rem 1.35rem;
    border-radius: 1.15rem;
  }
  .auth-card-header h2 {
    font-size: 1.85rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .pokeapi-logo {
    width: min(100%, 210px);
  }
}
@media (max-width: 420px) {
  .auth-page {
    padding-inline: 0.75rem;
  }
  .auth-logo-image {
    width: 170px;
  }
  .auth-card {
    padding-inline: 1.1rem;
  }
}
