/* ============================================================
   CERDP - Espace Auteur & Revue RDGD
   Styles CSS officiels pour la connexion, l'inscription
   et le tableau de bord auteur
   ============================================================ */

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f4f7fb;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----------------- Navigation Espace Auteur ----------------- */
.author-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  background: #06264f;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(6, 38, 79, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

.author-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
}

.author-brand img {
  height: 48px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 10px;
}

.author-brand span {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.author-brand small {
  color: #fde68a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.author-nav nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-nav nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.author-nav nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.author-nav nav a.button {
  background: #c99300;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(201, 147, 0, 0.25);
}

.author-nav nav a.button:hover {
  background: #d99f00;
  transform: translateY(-1px);
}

.author-nav nav a.button.secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.author-nav nav a.button.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ----------------- Conteneur Principal ----------------- */
.author-main {
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 36px auto;
  padding: 0 24px;
}

/* ----------------- Cartes & Boîtes ----------------- */
.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(6, 38, 79, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

/* ----------------- Page de Connexion / Inscription ----------------- */
.auth-wrap {
  max-width: 480px;
  margin: 30px auto;
  padding: 40px 36px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(6, 38, 79, 0.09);
  border: 1px solid #e2e8f0;
}

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

.auth-header img {
  height: 64px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 16px;
}

.auth-wrap h1 {
  font-size: 24px;
  font-weight: 800;
  color: #06264f;
  margin: 0 0 10px 0;
  font-family: Georgia, serif;
  text-align: center;
}

.auth-wrap > p:first-of-type {
  color: #64748b;
  font-size: 14px;
  text-align: center;
  margin: 0 0 28px 0;
  line-height: 1.5;
}

/* ----------------- Formulaires & Champs ----------------- */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #06264f;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  color: #1e293b;
  background-color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #c99300;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(201, 147, 0, 0.15);
}

.field small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 6px;
}

/* ----------------- Boutons ----------------- */
button[type="submit"],
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: #06264f;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(6, 38, 79, 0.2);
}

button[type="submit"]:hover,
.button:hover {
  background: #c99300;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 147, 0, 0.3);
}

.auth-wrap p:last-child {
  text-align: center;
  margin-top: 26px;
  margin-bottom: 0;
  font-size: 14px;
  color: #64748b;
}

.auth-wrap p:last-child a {
  color: #c99300;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.auth-wrap p:last-child a:hover {
  text-decoration: underline;
}

/* ----------------- Alertes & Notifications ----------------- */
.error {
  padding: 14px 18px;
  border-radius: 12px;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
}

.notice {
  padding: 14px 18px;
  border-radius: 12px;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
}

/* ----------------- Dashboard & Soumissions Auteur ----------------- */
.hero-card {
  background: linear-gradient(135deg, #06264f, #0f3d75);
  color: #ffffff;
  border: none;
  padding: 36px;
}

.hero-card h1 {
  font-size: 28px;
  margin: 0 0 10px 0;
  font-family: Georgia, serif;
  color: #ffffff;
}

.hero-card p {
  color: #bfdbfe;
  font-size: 15px;
  margin: 0 0 24px 0;
}

.hero-card .button {
  width: auto;
  background: #c99300;
}

.hero-card .button:hover {
  background: #d99f00;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat {
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(6, 38, 79, 0.04);
}

.stat strong {
  display: block;
  font-size: 38px;
  color: #06264f;
  margin-bottom: 4px;
  font-weight: 900;
}

.submission {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.submission:hover {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(6, 38, 79, 0.06);
}

.submission h3 {
  margin: 10px 0 6px 0;
  color: #06264f;
  font-size: 18px;
}

.submission p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.submission .button {
  width: auto;
  font-size: 13px;
  padding: 9px 18px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.review {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge.accepted {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge.rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.submission .message {
  margin-top: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border-left: 4px solid #c99300;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ----------------- Footer ----------------- */
.author-footer {
  text-align: center;
  padding: 28px 20px;
  color: #64748b;
  font-size: 13px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  margin-top: auto;
}

/* ----------------- Responsive ----------------- */
@media (max-width: 768px) {
  .author-nav {
    padding: 12px 16px;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .author-main {
    padding: 0 16px;
    margin: 20px auto;
  }
  .auth-wrap {
    padding: 28px 20px;
    margin: 16px auto;
  }
  .submission {
    flex-direction: column;
  }
  .submission .button {
    width: 100%;
  }
}
