/* login.css — Connexion (carte centrée, écran 04 de la maquette) */


.sp-auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #eaf1ff 0%, var(--bg) 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 34px 32px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.auth-back:hover { color: var(--primary); }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.auth-brand .icon {
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.auth-brand span { font-weight: 700; font-size: 17px; color: var(--text); }

.auth-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.auth-header p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; }

.input-password { position: relative; }
.btn-toggle-pw {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-light); cursor: pointer; padding: 4px;
}

.form-row-between {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; margin-bottom: 18px;
}
.form-row-between label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.form-row-between a { color: var(--primary); font-weight: 500; }

.btn-login {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-login:hover { background: var(--primary-dark); }

.login-error {
  display: none;
  align-items: center; gap: 8px;
  background: var(--danger-light); color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 12px; font-size: 13px; margin-bottom: 16px;
}
.login-error.show { display: flex; }

.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0; font-size: 12px; color: var(--text-light);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.social-row { display: flex; gap: 10px; margin-bottom: 20px; }
.social-btn {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 9px; display: flex; align-items: center; justify-content: center;
  background: #fff; cursor: pointer;
}
.social-btn:hover { background: var(--bg); }

.auth-footer-link { text-align: center; font-size: 13.5px; color: var(--text-muted); }
.auth-footer-link a { color: var(--primary); font-weight: 600; }

/* Bloc démo (utile pour la soutenance, pas dans la maquette) */
.demo-box {
  margin-top: 22px; padding: 14px; border-radius: var(--radius-md);
  background: var(--bg); border: 1px dashed var(--border);
}
.demo-box p { font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.demo-box select { margin-bottom: 8px; }
.demo-box .btn { width: 100%; font-size: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }


.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.terms-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.terms-row label {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.terms-row a {
  color: var(--primary);
  text-decoration: underline;
}
.sp-auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.sp-auth-footer a {
  color: var(--primary);
  font-weight: 600;
}
.btn-sp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-sp:active {
  transform: scale(0.97);
}
.btn-sp-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}
.btn-sp-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  
}
.btn-sp-block {
  width: 100%;
}


