/* Style pour la page de connexion patient */
:root{
  --bg1:#f7fbff;
  --bg2:#eef6ff;
  --card-bg:#ffffff;
  --primary:#2563eb;
  --accent:#3b82f6;
  --danger:#ef4444;
  --muted:#6b7280;
  --radius:12px;
  --shadow: 0 8px 30px rgba(16,24,40,0.06);
  --max-width:420px;
  font-family: Inter,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
}

html,body{
  height:100%;
  margin:0;
  background: linear-gradient(135deg,var(--bg1),var(--bg2));
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  color:#0f172a;
}

.auth-wrapper{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.auth-card{
  width:100%;
  max-width:var(--max-width);
  background:var(--card-bg);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
  box-sizing:border-box;
  border:1px solid rgba(15,23,42,0.04);
}

.auth-card h2{
  margin:0 0 16px 0;
  font-size:20px;
  font-weight:700;
  color:var(--primary);
}

.form-row{
  margin-bottom:14px;
}

input[type="email"],
input[type="password"],
input[type="text"]
input[type="submit"]
input[type="number"]
input[type="nom"]
input[type="prenom"]
input[type="ville"]


{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.08);
  background:linear-gradient(180deg,#fff,#fbfdff);
  font-size:14px;
  color:#0f172a;
  box-sizing:border-box;
  transition:box-shadow .15s, border-color .15s, transform .08s;
}

input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 6px 18px rgba(59,130,246,0.12);
  transform:translateY(-1px);
}

button.btn-primary{
  width:100%;
  display:inline-block;
  padding:12px 14px;
  border-radius:10px;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  color:#fff;
  font-weight:700;
  border:none;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(37,99,235,0.12);
  transition:transform .12s, box-shadow .12s, opacity .12s;
}

button.btn-primary:hover{
  transform:translateY(-2px);
  opacity:0.98;
}

.auth-note{
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
  text-align:center;
}

.auth-note a{
  color:var(--primary);
  text-decoration:none;
  font-weight:600;
}

.error-message{
  margin-bottom:12px;
  padding:10px 12px;
  background:rgba(239,68,68,0.06);
  border:1px solid rgba(239,68,68,0.12);
  color:var(--danger);
  border-radius:8px;
  font-size:14px;
}

/* petits écrans */
@media (max-width:420px){
  .auth-card{ padding:18px; border-radius:10px; }
  :root{ --max-width:380px; }
}