/**
 * Формы входа / регистрации в platform shell.
 */
body.platform-page .platform-auth-page {
  max-width: 560px;
  margin: 0 auto;
}

body.platform-page .platform-auth-card {
  min-height: 0;
  padding: 22px 20px;
  border-radius: var(--mp-radius-lg);
  border: 1px solid var(--mp-border-soft);
  background: linear-gradient(135deg, var(--mp-surface) 0%, var(--mp-surface-muted) 100%);
  box-shadow: var(--mp-shell-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.platform-page .platform-auth-title {
  margin-bottom: 0;
  text-align: left;
}

body.platform-page .platform-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.platform-page .platform-auth-submit {
  margin-top: 8px;
  min-height: 40px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--mp-accent-contrast);
  background: var(--mp-accent);
  border: 1px solid var(--mp-accent-border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

body.platform-page .platform-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

body.platform-page .platform-auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--mp-text-secondary);
}

body.platform-page .platform-auth-footer a {
  font-weight: 600;
  color: var(--mp-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* showAlert() — без components.css */
#alerts {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(92vw, 360px);
  pointer-events: none;
}

#alerts .alert {
  pointer-events: auto;
  padding: 12px 14px;
  border-radius: 10px;
  min-width: 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(46, 53, 96, 0.12);
}

#alerts .alert-success {
  background: var(--alert-success-bg);
  color: var(--alert-success-fg);
}

#alerts .alert-error {
  background: var(--alert-error-bg);
  color: var(--alert-error-fg);
}

#alerts .alert-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
}
