/*
 * fullscreen.css — Reset et base pour le template Plein écran
 * Actif uniquement sur les pages app + connexion.
 */

/* ── Reset complet pour plein écran ─────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0f16;
  margin: 0 !important;
  padding: 0 !important;
}

/* Annuler le padding-top WP (admin bar) sur les pages fullscreen */
html.wp-toolbar { padding-top: 0 !important; }

/* Supprimer tout ce que WP ou d'autres plugins pourraient injecter
   autour du contenu du shortcode */
body.ac-fullscreen-body > :not(#ac-root):not(#wpadminbar):not(script):not(style):not(link) {
  display: none !important;
}

/* L'admin bar reste visible et flotte au-dessus pour les admins */
#wpadminbar {
  position: fixed !important;
  top: 0 !important;
  z-index: 99999 !important;
}

/* Décaler le root de l'app uniquement si l'admin bar est visible */
body.admin-bar #ac-root {
  padding-top: 32px;
  height: calc(100vh - 32px) !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar #ac-root {
    padding-top: 46px;
    height: calc(100vh - 46px) !important;
  }
}

/* ── Page de connexion ───────────────────────────────────────────── */
body.ac-fullscreen-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fond radial pour la page de connexion */
.ac-login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 900px 600px at 60% 0%, rgba(232,93,4,.07) 0%, transparent 70%),
    #0d0f16;
}

.ac-login-card {
  width: 100%;
  max-width: 420px;
  background: #141720;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

/* ── Logo connexion ─────────────────────────────────────────────── */
.ac-login-logo { text-align: center; margin-bottom: 32px; }
.ac-login-logo-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.ac-login-logo-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #f0f2f8;
}
.ac-login-logo-sub {
  font-size: 12px;
  color: #8b92a8;
  margin-top: 4px;
  letter-spacing: .5px;
}

/* ── Alertes ────────────────────────────────────────────────────── */
.ac-login-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.ac-login-alert.error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
}
.ac-login-alert.success {
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.25);
  color: #6ee7b7;
}

/* ── Formulaire ─────────────────────────────────────────────────── */
.ac-login-form .ac-field { margin-bottom: 18px; }

.ac-login-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #8b92a8;
  margin-bottom: 6px;
}

.ac-login-form input[type="text"],
.ac-login-form input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  background: #1c2030;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #f0f2f8;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ac-login-form input[type="text"]:focus,
.ac-login-form input[type="password"]:focus {
  border-color: #e85d04;
  box-shadow: 0 0 0 3px rgba(232,93,4,.12);
}

/* Toggle password */
.ac-pw-wrap { position: relative; }
.ac-pw-wrap input { padding-right: 42px; }
.ac-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #8b92a8;
  font-size: 16px;
  line-height: 1;
  transition: color .15s;
}
.ac-pw-toggle:hover { color: #f0f2f8; }

/* Remember me */
.ac-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b92a8;
  cursor: pointer;
  user-select: none;
  margin-bottom: 24px;
}
.ac-remember input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: #e85d04;
  cursor: pointer;
}

/* Lien mot de passe oublié */
.ac-forgot-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #8b92a8;
  text-decoration: none;
  margin-top: -12px;
  margin-bottom: 18px;
  transition: color .15s;
}
.ac-forgot-link:hover { color: #e85d04; }

/* Bouton submit */
.ac-login-btn {
  width: 100%;
  padding: 13px;
  background: #e85d04;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .3px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.ac-login-btn:hover  { opacity: .9; }
.ac-login-btn:active { transform: scale(.98); }
.ac-login-btn:disabled { opacity: .5; cursor: not-allowed; }

@keyframes ac-spin { to { transform: rotate(360deg); } }
.ac-login-btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ac-spin .6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* Footer formulaire */
.ac-login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #8b92a8;
}
.ac-login-footer a { color: #e85d04; text-decoration: none; }
.ac-login-footer a:hover { text-decoration: underline; }

/* Séparateur */
.ac-login-sep { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 24px 0; }

@media (max-width: 480px) {
  .ac-login-card { padding: 30px 22px; }
}
