/* Auth — login & register (extends PDIKM page shell) */

.pdikm-page--auth {
  justify-content: flex-start;
  padding-top: 28px;
  padding-bottom: 36px;
  overflow-y: auto;
}

.pdikm-page--auth .pdikm-hero {
  margin-bottom: 18px;
}

.pdikm-auth-card {
  text-align: left;
  animation: pdikmFadeUp 0.55s 0.08s ease-out both;
}

.pdikm-auth-title {
  margin: 0 0 6px;
  font-family: var(--pdikm-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.pdikm-auth-desc {
  margin: 0 0 20px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.pdikm-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.pdikm-field {
  margin-bottom: 14px;
}

.pdikm-field .pdikm-input {
  margin-bottom: 0;
}

.pdikm-password-wrap {
  position: relative;
}

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

.pdikm-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.pdikm-password-toggle:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.pdikm-password-toggle.is-visible .pdikm-password-icon--show {
  display: none;
}

.pdikm-password-toggle:not(.is-visible) .pdikm-password-icon--hide {
  display: none;
}

.pdikm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.pdikm-form-row .pdikm-field {
  margin-bottom: 0;
}

.pdikm-auth-form .pdikm-auth-submit {
  width: 100%;
  margin-top: 6px;
}

.pdikm-auth-forgot {
  margin: -4px 0 14px;
  text-align: right;
}

.pdikm-auth-forgot a {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pdikm-auth-forgot a:hover {
  color: #ffca28;
}

.pdikm-auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.pdikm-auth-alert p {
  margin: 0;
}

.pdikm-auth-alert p + p {
  margin-top: 6px;
}

.pdikm-auth-alert--success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: #5dffb8;
}

.pdikm-auth-alert--error {
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.25);
  color: #ff8a80;
}

.pdikm-auth-steps {
  margin: 18px 0 0;
  padding-left: 18px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.pdikm-auth-steps li + li {
  margin-top: 4px;
}

.pdikm-auth-footer {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

.pdikm-auth-footer a {
  color: #ffca28;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.pdikm-auth-footer a:hover {
  opacity: 0.85;
}

body:has(.pdikm-page--auth) {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100dvh;
  height: auto;
}

@media (max-width: 380px) {
  .pdikm-page--auth {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .pdikm-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pdikm-form-row .pdikm-field {
    margin-bottom: 14px;
  }

  .pdikm-form-row .pdikm-field:last-child {
    margin-bottom: 0;
  }
}
