/* ── PAGES ACCOUNT ── */

/* Wrapper centré (connexion, mot de passe, confirmation…) */
.ac-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.ac-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
}

.ac-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.ac-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 6px;
  text-align: center;
}

.ac-subtitle {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Alertes */
.ac-alert {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.ac-alert--success {
  background: var(--accent);
  color: var(--green-dark);
  border: 1px solid var(--green-mid);
}
.ac-alert--error {
  background: #fff0f0;
  color: #b72b2b;
  border: 1px solid #f5c0c0;
}
html.dark .ac-alert--error {
  background: #2a1515;
  color: #f08080;
  border-color: #5a2020;
}
.ac-alert--warning {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid #e8c97a;
}
html.dark .ac-alert--warning {
  background: #1e1800;
  color: #d4a84b;
  border-color: #4a3a00;
}

/* Formulaire */
.ac-form { display: flex; flex-direction: column; gap: 12px; }

.ac-field { display: flex; flex-direction: column; gap: 4px; }
.ac-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}
.ac-field input {
  padding: 10px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.ac-field input:focus { border-color: var(--green); }
.ac-field input:disabled { opacity: .55; cursor: not-allowed; }
.ac-field input::placeholder { color: var(--muted); opacity: .6; }

.ac-field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.ac-field-hint.ok  { color: var(--green); }
.ac-field-hint.err { color: #b72b2b; }

.ac-field-error {
  font-size: 11px;
  color: #b72b2b;
  margin-top: 2px;
}

/* Divider */
.ac-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  font-size: 11px;
  color: var(--muted);
}
.ac-divider::before,
.ac-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Row de liens en bas */
.ac-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.ac-footer a {
  color: var(--green);
  text-decoration: none;
}
.ac-footer a:hover { text-decoration: underline; }

/* Bouton danger */
.ac-btn-danger {
  width: 100%;
  padding: 11px 18px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ac-btn-danger:hover { background: #a93226; }

/* ── MANAGE : layout sidebar ── */
.manage-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 680px) {
  .manage-page { grid-template-columns: 1fr; }
}

.manage-nav {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.manage-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.manage-nav a:hover { background: var(--accent); color: var(--green); }
.manage-nav a.active { background: var(--accent); color: var(--green); font-weight: 600; }

.manage-content {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px;
}

.manage-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 20px;
}

.manage-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 20px 0 10px;
}

/* Tableau connexions externes */
.manage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.manage-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.manage-table tr:last-child td { border-bottom: none; }

/* Row bouton inline (2FA, etc.) */
.manage-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
