/* =========================================================
   Kanado v6 — auth.css
   Pages: /connexion, /inscription
   Style verre sombre + animations douces
   ========================================================= */

/* ---- Tokens locaux (harmonisés au dashboard) ---- */
:root{
  --auth-text: #eaf2ff;
  --auth-muted:#9fb2d8;
  --auth-border: rgba(255,255,255,.10);

  --auth-cyan:  #6ee7f9;
  --auth-mint:  #00e09f;
  --auth-violet:#8e76ff;

  --auth-radius: 18px;
  --auth-blur: 14px;
  --auth-ease: cubic-bezier(.2,.8,.2,1);
}

/* ---- Fond page (même ambiance que le dashboard) ---- */
.auth-page{
  min-height: 100svh; /* mobile safe */
  margin: 0;
  color: var(--auth-text);
  background:
    radial-gradient(1200px 360px at 20% -15%, rgba(110,231,249,.12), transparent 60%),
    radial-gradient(900px 300px at 85% -30%,  rgba(142,118,255,.12), transparent 60%),
    linear-gradient(180deg, #0b1222, #0a0f1c 35%, #0a0e16);
}

/* ---- Conteneur centré ---- */
.auth-container{
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 28px);
}

/* ---- Carte en verre ---- */
.auth-card{
  width: min(480px, 92vw);
  background: rgba(18,22,34,.58);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  backdrop-filter: blur(var(--auth-blur));
  -webkit-backdrop-filter: blur(var(--auth-blur));
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  padding: clamp(18px, 4vw, 28px);
  color: var(--auth-text);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.985);
  filter: blur(2px);
  animation: auth-in .6s var(--auth-ease) forwards;
}

/* Liseré haut dégradé subtil */
.auth-card::before{
  content:"";
  position:absolute; left:12px; right:12px; top:0;
  height: 3px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--auth-cyan), var(--auth-violet));
  opacity:.85;
}

/* ---- Illustration ---- */
.auth-hero-top{
  width: 100%;
  border-radius: calc(var(--auth-radius) - 6px);
  overflow: hidden;
  margin: 0 0 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.auth-hero-top img{
  display:block; width:100%; height:auto;
}

/* ---- Titres ---- */
.auth-title{
  margin: 2px 0 4px;
  font-weight: 800;
  font-size: clamp(20px, 3.2vw, 28px);
  letter-spacing:.3px;
  background: linear-gradient(90deg, var(--auth-cyan), var(--auth-violet));
  -webkit-background-clip:text; background-clip:text; color: transparent;
  text-shadow: 0 0 18px rgba(110,231,249,.15);
}
.auth-sub{
  margin: 0 0 18px;
  color: var(--auth-muted);
  font-size: .98rem;
}

/* ---- Formulaire ---- */
.auth-form{ display:grid; gap:14px; }
.auth-field{ display:grid; gap:6px; text-align:left; }

.auth-label{
  font-size:.92rem; color:var(--auth-muted);
}

.auth-input{
  width:100%; padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--auth-border);
  background: rgba(12,16,28,.75);
  color: var(--auth-text);
  outline: none;
  transition: border-color .2s var(--auth-ease), box-shadow .2s var(--auth-ease), background-color .2s var(--auth-ease);
}
.auth-input::placeholder{ color: color-mix(in oklab, var(--auth-muted), #000 0%); }
.auth-input:focus{
  border-color: var(--auth-cyan);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--auth-cyan), transparent 75%);
  background: rgba(12,16,28,.9);
}

/* ---- Bouton principal ---- */
.auth-btn{
  appearance:none; border:0; cursor:pointer;
  width:100%; padding:12px 14px;
  border-radius: 14px;
  font-weight:700; color:#081018;
  background: linear-gradient(135deg, var(--auth-cyan), var(--auth-mint));
  box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 18px rgba(110,231,249,.18);
  transition: transform .15s var(--auth-ease), box-shadow .2s var(--auth-ease), filter .2s var(--auth-ease);
}
.auth-btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,0,0,.28), 0 0 24px rgba(110,231,249,.25); }
.auth-btn:active{ transform: translateY(0); }

/* ---- Lien secondaire ---- */
.auth-link{
  display:inline-block; margin-top:12px;
  color: var(--auth-cyan); text-decoration:none; font-weight:600;
}
.auth-link:hover{ text-decoration:underline; }

/* ---- Animations ---- */
@keyframes auth-in{
  to{ opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---- Petites tailles ---- */
@media (max-width: 420px){
  .auth-card{ padding: 18px; }
}

/* ---- Accessibilité (réduction animations) ---- */
@media (prefers-reduced-motion: reduce){
  .auth-card{ opacity:1; transform:none; filter:none; animation:none; }
}
