:host {
  display: block;
}
.login-page {
  height: 100%;
  background-color: #f8f9fa;
}
html,body{
  height: 100%;
  overflow: hidden;
}

.illustration-section {
  background: #2e3192;
  height: 100vh!important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 2rem;
}

.illustration-content {
  text-align: center;
}

.student-illustration {
  max-width: 400px;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

.welcome-text {
  margin-top: 0px;
  margin-bottom: 4rem;
}

.welcome-text h1 {
  font-size: 2.5rem;
  font-weight: 300;
}

.welcome-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.login-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
  height: 100%;
  overflow-y: auto;
}

.welcome-message {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-message h3 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  
}

.welcome-message p {
  color: #666;
}

.user-type-section {
  max-width: 600px;
  padding: 5px;
  background: transparent;
  border-radius: 8px;
  margin-bottom: 20px;
}

h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 500;
}

.user-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 30px;
  padding: 10px;
  border-radius: 8px;
}

.user-type-option {
  display: flex;
  align-items: center;
}

.radio-input {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #6366f1;
  border-radius: 50%;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
}

input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #6366f1;
  border-radius: 50%;
}

input[type="radio"]:hover {
  border-color: #4f46e5;
}

label {
  font-size: 13px;
  color: #4a5568;
  cursor: pointer;
  user-select: none; /* Empêche la sélection du texte */
}

input[type="radio"]:checked + label {
  color: #4f46e5;
  font-weight: 500;
}

/* Pour les très petits écrans */
@media (max-width: 300px) {
  .user-type-grid {
      grid-template-columns: 1fr;
      gap: 8px;
  }
}

.form-floating {
  margin-bottom: 1rem;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  padding: 1rem;
}

.form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.login-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background-color: #e2e8f0;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background-color: white;
  padding: 0 1rem;
  color: #666;
  font-weight: 600;
}

.btn-google {
  width: 100%;
  background-color: rgb(230, 149, 149);
  border: 2px solid #e2e8f0;
  padding: 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background-color: #f8f9fa;
  border-color: #6366f1;
}

.btn-google img {
  width: 20px;
  height: 20px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 768px) {
  .login-container {
    padding: 2rem 1rem;
  }

  .welcome-message h3 {
    font-size: 1.75rem;
  }

}
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px;
  border-radius: 5px;
  background-color: #f44336;
  color: white;
  font-weight: bold;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
}

.notification.hide {
  opacity: 0;
  transform: translateX(100%);
}

.user-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur desktop */
  gap: 15px;
}

.user-type-option {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.user-type-option:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.radio-input {
  display: flex;
  align-items: center;
  width: 100%;
}

.radio-input input[type="radio"] {
  margin-right: 10px;
}

.radio-input label {
  cursor: pointer;
  font-weight: 500;
  color: #333;
}

/* Media query pour les écrans mobiles */
@media (max-width: 768px) {
  .user-type-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
      gap: 2px;
  }
  
  
  .radio-input label {
      font-size: 14px;
  }
}

/* Media query pour les très petits écrans */
@media (max-width: 480px) {
  .user-type-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2px;
  }
  
  .user-type-option {
      padding:6px;
  }
  
  .radio-input label {
      font-size: 13px;
  }
}