/* Password recovery — CRM-inspired auth portal (legacy medecin host) */

:root {
  --auth-bg: #f4f6f9;
  --auth-card: #ffffff;
  --auth-border: #e2e8f0;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-primary: #2563eb;
  --auth-primary-hover: #1d4ed8;
  --auth-danger: #dc2626;
  --auth-success: #16a34a;
  --auth-radius-lg: 12px;
  --auth-radius-xl: 16px;
  --auth-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.auth-portal {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--auth-text);
  background: linear-gradient(160deg, var(--auth-bg) 0%, var(--auth-border) 100%);
}

.auth-portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-portal-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-portal-logo {
  display: block;
  max-width: 220px;
  height: auto;
  margin: 0 auto 12px;
}

.auth-portal-tagline {
  margin: 0;
  font-size: 1.05rem;
  color: var(--auth-muted);
}

.auth-portal-card {
  width: 100%;
  max-width: 420px;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-xl);
  padding: 32px;
  box-shadow: var(--auth-shadow);
}

.auth-portal-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-portal-subtitle,
.auth-portal-notice {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--auth-muted);
}

.auth-portal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-portal-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.auth-portal-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--auth-text);
  background: var(--auth-bg);
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius-lg);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-portal-input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-portal-alert {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.auth-portal-alert--info {
  color: var(--auth-primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.auth-portal-alert--success {
  color: var(--auth-success);
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.auth-portal-alert--danger {
  color: var(--auth-danger);
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.auth-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--auth-primary);
  border: none;
  border-radius: var(--auth-radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.auth-portal-btn:hover {
  background: var(--auth-primary-hover);
  box-shadow: var(--auth-shadow);
}

.auth-portal-footer {
  margin-top: 20px;
  text-align: center;
}

.auth-portal-link {
  font-size: 0.875rem;
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-portal-link:hover {
  color: var(--auth-primary);
  text-decoration: underline;
}

.auth-portal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-portal-actions .auth-portal-btn {
  flex: 1 1 140px;
  font-size: 0.8125rem;
  padding: 10px 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.auth-portal-btn--secondary {
  background: #fff;
  color: var(--auth-text);
  border: 1.5px solid var(--auth-border);
}

.auth-portal-btn--secondary:hover {
  background: var(--auth-bg);
  box-shadow: none;
}
