/* =========================================================
   9B. Authentication pages
   ========================================================= */
.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr 1fr;
}

.auth-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  background: linear-gradient(145deg, #0f2f78, #4f46e5 55%, #06b6d4);
  color: #ffffff;
}

@media (max-width: 1000px) {
  .auth-showcase {
    display: none;
  }
}

.auth-showcase .brand {
  color: #ffffff;
}

.auth-showcase h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.auth-form-wrap {
  display: grid;
  padding: 34px;
  place-items: center;
  background: var(--bg);
}

@media (max-width: 640px) {
  .auth-form-wrap {
    padding: 20px;
  }
}

.auth-card {
  width: min(520px, 100%);
  padding: 30px;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 20px;
  }
}

.auth-card h2 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .form-grid {
    gap: 12px;
  }
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 36px;
}

@media (max-width: 640px) {
  .password-wrap .input {
    padding-right: 32px;
  }
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}

@media (max-width: 640px) {
  .password-toggle {
    width: 28px;
    height: 28px;
  }
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .checks {
    gap: 8px;
  }
}

.check.met {
  color: var(--success);
}

.strength-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.strength-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--danger);
  transition: 0.25s;
}
