:root {
  --primary: #1e3c72;
  --secondary: #0ea5a0;
  --muted: #555;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: #222;
}

/* --- HERO (page d’accueil) --- */
.hero {
  display: flex;
  height: 100vh;
}

.hero-left {
  flex: 1;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8fafc;
}

.hero-right {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-right .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.role-buttons {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-role {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--primary);
  transition: 0.3s;
}

.btn-role:hover {
  background: var(--primary);
  color: white;
}

.btn-role .col .title {
  font-weight: 700;
  font-size: 18px;
}

.btn-role .col .subtitle {
  font-size: 14px;
  color: var(--muted);
}

/* Couleurs boutons personnalisées */
.btn-role.medecin { border-color: #1e3c72; color: #1e3c72; }
.btn-role.medecin:hover { background: #1e3c72; color: #fff; }

.btn-role.pharmacien { border-color: #0ea5a0; color: #0ea5a0; }
.btn-role.pharmacien:hover { background: #0ea5a0; color: #fff; }

/* --- PAGES LOGIN / REGISTER --- */
.split-layout {
  display: flex;
  height: 100vh;
}

.side-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.side-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.side-content {
  position: absolute;
  bottom: 60px;
  left: 40px;
  color: white;
}

.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.form-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.btn-primary {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #16305c;
}

.message-box {
  margin-top: 10px;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
}

.message-box.error { background: #fee2e2; color: #b91c1c; }
.message-box.success { background: #dcfce7; color: #166534; }
/* Styles pour le formulaire médecin */
.form-row {
  display: flex;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #1e3c72;
  border-color: #1e3c72;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}:root {
  --primary: #2a5298;
  --primary-dark: #1e3c72;
  --secondary: #0ea5a0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --muted: #6b7280;
  --light: #f3f4f6;
  --dark: #111827;
  --border: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.6;
}

.hero {
  display: flex;
  min-height: 100vh;
}

.hero-left {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.hero-right {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
}

.logo {
  margin-bottom: 40px;
}

.logo svg {
  height: 40px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  margin-bottom: 24px;
}

.split-layout {
  display: flex;
  min-height: 100vh;
}

.side-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.side-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 40px;
  max-width: 500px;
}

.side-content h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.side-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.form-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  border-bottom: none;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark);
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.pharm-btn {
  background: linear-gradient(135deg, var(--secondary), #0d9488);
}

.pharm-btn:hover {
  box-shadow: 0 4px 12px rgba(14, 165, 160, 0.3);
}

.small-link {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
}

.small-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.small-link a:hover {
  text-decoration: underline;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.message-box {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  display: none;
}

.message-box.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.message-box.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-center {
  text-align: center;
}

.logo-center {
  text-align: center;
  position: relative;
  margin-bottom: 16px;
}

.logo-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px 0;
  min-width: 180px;
  z-index: 10;
  text-align: left;
}

.logo-dropdown a {
  display: block;
  padding: 8px 16px;
  color: #1e3c72;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.logo-dropdown a:hover {
  background-color: #f3f4f6;
}

.logo-center:hover .logo-dropdown {
  display: block;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  
  .hero-left {
    padding: 40px 20px;
  }
  
  .hero-right {
    display: none;
  }
  
  .split-layout {
    flex-direction: column;
  }
  
  .side-image {
    min-height: 300px;
  }
  
  .form-side {
    padding: 20px;
  }
  
  .form-card {
    padding: 30px 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}:root {
  --primary: #1e3c72;
  --primary-dark: #2a5298;
  --accent: #0ea5a0;
  --text: #111827;
  --muted: #6b7280;
  --light: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --error: #ef4444;
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f9fafb;
  color: var(--text);
  line-height: 1.5;
}

.split-layout {
  display: flex;
  min-height: 100vh;
}

.side-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.85), rgba(42, 82, 152, 0.8));
}

.side-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 500px;
}

.side-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.side-content p {
  font-size: 18px;
  opacity: 0.9;
}

.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 500px;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h1 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--muted);
  font-size: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-section h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.checkbox-group a {
  color: var(--primary);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.pharm-btn {
  background: linear-gradient(135deg, var(--accent), #10b981);
}

.pharm-btn:hover {
  box-shadow: 0 5px 15px rgba(14, 165, 160, 0.3);
}

.pharm-accent .side-overlay {
  background: linear-gradient(135deg, rgba(14, 165, 160, 0.85), rgba(16, 185, 129, 0.8));
}

.login-link {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
}

.login-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}

.small-link {
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.small-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.small-link a:hover {
  text-decoration: underline;
}

.message-box {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
}

.message-box.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.message-box.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.flex-col {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
  }
  
  .side-image {
    min-height: 200px;
    padding: 20px;
  }
  
  .side-content h2 {
    font-size: 24px;
  }
  
  .side-content p {
    font-size: 16px;
  }
  
  .form-card {
    padding: 24px;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}/* style2.css - Styles pour les pages de connexion et d'inscription */

:root {
  --primary-color: #2a5298;
  --secondary-color: #1e3c72;
  --accent-color: #0ea5a0;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #dee2e6;
  --text-color: #333;
  --text-light: #6c757d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f7fa;
  color: var(--text-color);
  line-height: 1.6;
}

/* Split Layout */
.split-layout {
  display: flex;
  min-height: 100vh;
}

.side-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: white;
}

.side-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.side-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  text-align: center;
}

.side-content h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: 700;
}

.side-content p {
  font-size: 1.1em;
  opacity: 0.9;
  margin-bottom: 30px;
}

.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: white;
}

.form-card {
  width: 100%;
  max-width: 420px;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 14px;
}

.input {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.input::placeholder {
  color: var(--text-light);
}

.btn-primary {
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.small-link {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.small-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.small-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
  }
  
  .side-image {
    min-height: 250px;
    padding: 30px 20px;
  }
  
  .side-content h2 {
    font-size: 1.8em;
  }
  
  .side-content p {
    font-size: 1em;
  }
  
  .form-side {
    padding: 30px 20px;
  }
  
  .form-card {
    max-width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}