.auth-wrap {
  max-width: 460px;
  margin: 72px auto;
  padding: 0 20px;
}

.auth-card {
  background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.auth-card.wide {
  max-width: 640px;
}

.auth-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 30px;
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.field-hint {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 6px;
}

.field-error {
  font-size: 12.5px;
  color: var(--red-orange);
  margin-top: 6px;
}

.field-input,
select.field-input,
textarea.field-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s ease;
}

.field-input:focus,
select.field-input:focus,
textarea.field-input:focus {
  outline: none;
  border-color: var(--blue);
}

.field-input::placeholder { color: var(--text-faint); }

textarea.field-input { resize: vertical; }

.form-errors {
  background: rgba(242, 73, 10, 0.1);
  border: 1px solid rgba(242, 73, 10, 0.35);
  color: #FFB199;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.auth-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Mon compte (dashboard) ---------- */
.compte-wrap {
  max-width: 760px;
  margin: 72px auto;
  padding: 0 20px;
}

.compte-header {
  margin-bottom: 40px;
}

.compte-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
}

.compte-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.profil-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .profil-cards { grid-template-columns: 1fr; }
}

.profil-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
}

.profil-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 6px;
}

.profil-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.profil-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.profil-status.en_attente {
  color: var(--orange);
  background: rgba(255, 149, 0, 0.12);
}
.profil-status.valide {
  color: var(--green);
  background: rgba(46, 189, 78, 0.12);
}
.profil-status.rejete {
  color: var(--red-orange);
  background: rgba(242, 73, 10, 0.12);
}
.profil-status .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}

/* Toggle des champs entreprise (SIRET / raison sociale) */
.entreprise-fields {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.entreprise-fields.is-open {
  max-height: 300px;
}

/* ---------- Champ fichier (upload de documents) ---------- */
.field-file {
  width: 100%;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px 15px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13.5px;
}
.field-file::file-selector-button {
  background: linear-gradient(90deg, var(--blue), var(--deep-blue));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  margin-right: 12px;
  cursor: pointer;
}
