.login-modal-card {
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.login-modal-card [hidden] {
  display: none !important;
}

.auth-mode-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #f1f5f9;
}

.auth-mode-switch button {
  flex: 1;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-mode-switch button[aria-pressed="true"] {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.registration-notice {
  margin-bottom: 1rem;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.registration-notice strong {
  display: block;
}

.registration-notice p {
  margin-top: 5px;
}

.registration-success {
  margin-bottom: 1rem;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

#registrationForm .login-field,
#resetPasswordForm .login-field {
  margin-bottom: 0.75rem;
}

#registrationForm .btn-login-action:disabled,
#resetPasswordForm .btn-login-action:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-forgot-password:hover {
  color: #C40030 !important;
}
