/* ============================
   auth-page / auth-card
   ============================ */
.auth-page {
  display: flex;
  justify-content: center;
  padding-block: 24px 60px;
}

.auth-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.auth-card__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: var(--color-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-card__banner img {
  width: 160px;
  height: auto;
}

.auth-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.auth-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.auth-card__subtitle {
  margin-top: -4px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.auth-card__success {
  padding: 14px 16px;
  background: rgba(0, 136, 99, 0.1);
  border: 1px solid var(--color-cta);
  border-radius: var(--radius-sm);
  color: var(--color-cta-active);
  font-size: 13px;
  line-height: 1.5;
}

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

.auth-card__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card__forgot {
  align-self: flex-start;
  margin-top: -12px;
  font-size: 11px;
  color: var(--color-text);
}

.auth-card__forgot:hover,
.auth-card__forgot:focus-visible {
  color: var(--color-cta);
  text-decoration: underline;
}

.auth-card__submit {
  width: 100%;
}

.auth-card__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-card__divider span {
  flex: 1;
  height: 1px;
  background: #d9d9d9;
}

.auth-card__divider p {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.auth-card__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 21px;
  background: var(--color-white);
  border: 1px solid #2d2d3a;
  border-radius: var(--radius-pill);
  color: #2d2d3a;
  font-size: 13px;
  font-weight: 500;
  transition: background-color var(--transition-base);
}

.auth-card__secondary:hover,
.auth-card__secondary:focus-visible {
  background: var(--color-bg-muted);
}

.auth-card__pev {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.auth-card__pev a {
  font-weight: 600;
  color: var(--color-cta);
}

.auth-card__pev a:hover,
.auth-card__pev a:focus-visible {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .auth-card__body {
    padding: 30px;
  }
}

/* ============================
   password-field
   ============================ */
.password-field {
  position: relative;
}

.password-field .input-text {
  padding-right: 48px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: background-color var(--transition-base);
}

.password-field__toggle:hover,
.password-field__toggle:focus-visible {
  background: var(--color-bg-muted);
}

.password-field__icon {
  width: 20px;
  height: 20px;
}

.password-field__icon[hidden] {
  display: none;
}
