/* ============================================================
   SocialNova Agency Platform — auth.css
   Pages : login.php, register.php
   ============================================================ */

body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--dark);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Orbes décoratifs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orb1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(0,189,197,.08), transparent 70%);
}
.orb2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -50px;
  background: radial-gradient(circle, rgba(227,155,156,.07), transparent 70%);
}

/* Boîte centrale */
.auth-box {
  width: 440px;
  max-width: 95vw;
  position: relative;
  z-index: 1;
}
.auth-box.wide { width: 480px; }

/* Logo */
.auth-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: .25rem;
}
.auth-logo span { color: var(--cyan); }
.auth-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Card auth */
.auth-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}
.auth-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.auth-card .sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* Inputs dans auth */
.auth-card input {
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
}

/* Bouton submit */
.btn-submit {
  display: block;
  width: 100%;
  padding: .85rem;
  background: var(--cyan);
  color: var(--dark);
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s;
  margin-top: .25rem;
  text-align: center;
  text-decoration: none;
}
.btn-submit:hover { background: var(--cyan-d); color: var(--dark); }
.btn-submit.rose { background: var(--rose); }
.btn-submit.rose:hover { background: var(--rose-d); }

/* Divider */
.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 1.25rem 0;
}

/* Lien secondaire */
.auth-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--rose);
  text-decoration: none;
  margin-top: .75rem;
  transition: opacity .2s;
}
.auth-link:hover { opacity: .75; color: var(--rose); }
.auth-link.cyan { color: var(--cyan); }

/* Retour */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .2s;
}
.back-link:hover { color: var(--rose); }

/* Info box */
.info-box {
  background: rgba(0,189,197,.06);
  border: 1px solid rgba(0,189,197,.2);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: 13px;
  color: rgba(0,189,197,.9);
  margin-bottom: 1.5rem;
}

/* Alerte erreur */
.alert-auth {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 1.25rem;
}
.alert-auth.error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #ef4444; }
.alert-auth.success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3);  color: #22c55e; }
