/* ============================================================
   NOVACARE HAITI — Auth Pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


:root {
  --primary:      #082B6F;
  --primary-light:#0e3d9e;
  --accent:       #00A3FF;
  --success:      #10B981;
  --danger:       #EF4444;
  --white:        #FFFFFF;
  --bg:           #F4F6F9;
  --border:       #E5E7EB;
  --text:         #111827;
  --text-muted:   #6B7280;
  --primary-50:   #e8eef8;
  --radius:       12px;
  --shadow-xl:    0 25px 50px -12px rgba(0,0,0,.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left panel */
.auth-hero {
  background: linear-gradient(145deg, #051e4e 0%, #082B6F 50%, #0a3a90 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.auth-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0,163,255,.08);
}
.auth-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.auth-hero .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}
.auth-hero .logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.auth-hero .logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #006ecc);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(0,163,255,.3);
}
.auth-hero .logo-text .name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.auth-hero .logo-text .sub {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.auth-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}
.auth-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: 40px;
}
.auth-hero .features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.auth-hero .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
}
.auth-hero .feature-item .icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.auth-hero .stats-row {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}
.auth-hero .stat { text-align: center; }
.auth-hero .stat .val { font-size: 24px; font-weight: 700; color: #fff; }
.auth-hero .stat .lbl { font-size: 11px; color: rgba(255,255,255,.5); }

/* Right panel */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}
.auth-box {
  width: 100%;
  max-width: 400px;
}
.auth-box .auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-box .auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.input-wrap {
  position: relative;
}
.input-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: all .2s;
  outline: none;
}
.input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.input-wrap input.error { border-color: var(--danger); }
.input-wrap .toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 15px;
  padding: 4px;
}
.input-wrap .toggle-pw:hover { color: var(--text); }

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-login:hover { background: var(--primary-light); box-shadow: 0 8px 24px rgba(8,43,111,.3); transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.auth-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Demo badge */
.demo-creds {
  background: var(--primary-50);
  border: 1px solid #c5d3ee;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--primary);
}
.demo-creds strong { font-weight: 600; }

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { padding: 32px 24px; }
}
