/* Écran de connexion La Renaissance */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
    
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.login-error-password,
.register-error-password {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.login-error-message,
.register-error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.login-success-message,
.register-success-message {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.register-message-box {
    border: 1px solid;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.register-message-box.error {
    background-color: #ffe3e3;
    border-color: #ffa8a8;
    color: #c92a2a;
}

.register-message-box.success {
    background-color: #d3f9d8;
    border-color: #8ce99a;
    color: #2b8a3e;
}

/* Conteneur principal */
.login-container,
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f1952;
  padding: 1rem;
}

/* Carte de connexion */
.login-card,
.register-card {
  width: 100%;
  max-width: 28rem;
  background-color: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* En-tête avec logo */
.login-header,
.register-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.login-logo-image,
.register-logo-image {
  width: 50%;
  height: 50%;
  margin-bottom: 1rem;
  margin-left: 6rem;
}

.login-brand-subtitle,
.register-brand-subtitle {
  color: #1f4fa8;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Titre Connexion */
.login-title,
.register-title {
  font-size: 1.875rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

.login-description,
.register-description {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Formulaire */
.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Groupe de champ */
.login-form-group,
.register-form-group {
  display: flex;
  flex-direction: column;
}

/* Label */
.login-form-label,
.register-form-label {
  display: block;
  font-size: 0.875rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

/* Conteneur de champ avec icône */
.login-input-wrapper,
.register-input-wrapper {
  position: relative;
}

/* Icône à gauche */
.login-input-icon-left,
.register-input-icon-left {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
}

.login-input-icon-left svg,
.register-input-icon-left svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Champ de saisie */
.login-form-input,
.register-form-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background-color: #9ca3af;
  color: white;
  border-radius: 9999px;
  border: none;
  outline: none;
  transition: ring 0.15s ease-in-out;
}

.login-form-input::placeholder,
.register-form-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.login-form-input:focus,
.register-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Champ avec icône à droite (mot de passe) */
.login-form-input-with-toggle,
.register-form-input-with-toggle {
  padding-right: 3rem;
}

/* Bouton toggle mot de passe */
.login-password-toggle,
.register-password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease-in-out;
}

.login-password-toggle:hover,
.register-password-toggle:hover {
  color: #d1d5db;
}

.login-password-toggle svg,
.register-password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mot de passe oublié */
.login-forgot-password-container,
.register-forgot-password-container {
  text-align: right;
}

.login-forgot-password-link,
.register-forgot-password-link {
  font-size: 0.875rem;
  color: #111827;
  text-decoration: none;
}

.login-forgot-password-link:hover,
.register-forgot-password-link:hover {
  text-decoration: underline;
}

/* Bouton de connexion */
.login-submit-button,
.register-submit-button {
  width: 100%;
  background-color: #4169e1;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.login-submit-button:hover,
.register-submit-button:hover {
  background-color: #3558c5;
}

/* Section inscription */
.login-signup-section,
.register-signup-section {
  margin-top: 2rem;
  text-align: center;
}

.login-signup-text,
.register-signup-text {
  color: #6b7280;
  font-size: 0.875rem;
}

.login-signup-link,
.register-signup-link {
  color: #4b5563;
  text-decoration: none;
}

.login-signup-link:hover,
.register-signup-link:hover {
  text-decoration: underline;
}

/* Barre de progression */
.register-progress-bar-container {
  margin-bottom: 1.5rem;
}

.register-progress-bar-track {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.register-progress-segment {
  flex: 1;
  height: 4px;
  background-color: #d0d0e8;
}

.register-progress-segment.active {
  background-color: #4169e1;
}

.register-progress-segment:first-child {
  border-radius: 4px 0 0 4px;
}

.register-progress-segment:last-child {
  border-radius: 0 4px 4px 0;
}

.register-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d0d0e8;
  flex-shrink: 0;
}

.register-progress-dot.active {
  background-color: #4169e1;
}

.register-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
  padding: 0 2px;
  gap: 8px;
}

.register-progress-labels span.active {
  color: #4169e1;
  font-weight: 500;
}

#step1,
#step2,
#step3,
#step4,
#step5 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#step2,
#step3,
#step4,
#step5 {
  display: none;
} 

.register-step-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.register-step-description {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #4b5563;
}

.communication-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.communication-option {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8def0;
  border-radius: 8px;
  background: #f8faff;
}

.register-input-wrapper.no-icon .register-form-input {
  padding-left: 1rem;
}

.register-input-row {
  display: flex;
  gap: 12px;
}

.register-input-wrapper.flex-1 {
  flex: 1;
}

.register-input-wrapper.flex-2 {
  flex: 2;
}

.register-button-row {
  display: flex;
  gap: 12px;
}

.register-code-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.register-code-section .register-form-group {
  margin-bottom: 0;
}

.register-submit-button.secondary {
  background-color: #eef2ff;
  color: #2f3a8f;
}

.register-submit-button.secondary:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.password-rules {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: #6b7280;
}

.password-rules li.valid {
  color: #16803a;
}

.password-strength {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #4b5563;
}

.password-strength-track {
  width: 100%;
  height: 7px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.password-strength-bar {
  height: 7px;
  width: 0;
  border-radius: 999px;
  background: #ef4444;
  transition: width 0.2s ease, background-color 0.2s ease;
}

/* Case à cocher personnalisée */
.register-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  user-select: none;
}

.register-checkbox-label input[type="checkbox"] {
  display: none;
}

.register-checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #9ca3af;
  border-radius: 4px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, border-color 0.15s;
}

.register-checkbox-label input[type="checkbox"]:checked + .register-checkbox-custom {
  background-color: #4169e1;
  border-color: #4169e1;
}

.register-checkbox-label input[type="checkbox"]:checked + .register-checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.register-checkbox-text {
  line-height: 1.4;
}

.register-checkbox-link {
  color: #4169e1;
  text-decoration: underline;
}
.family-selection-page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #1f1952;
            padding: 1rem;
        }

        .family-selection-card {
            width: 100%;
            max-width: 42rem;
            background-color: white;
            border-radius: 1.5rem;
            padding: 2rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        .family-selection-card .login-logo-image {
            width: 36%;
            height: auto;
            margin-bottom: 0.6rem;
            margin-left: 0;
        }

        .family-selection-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-bottom: 1.75rem;
        }

        .family-selection-title {
            font-size: 1.875rem;
            color: #111827;
            margin-bottom: 0.35rem;
        }

        .family-selection-activity {
            color: #4169e1;
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1.4;
        }

        .family-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 1.75rem;
        }

        .family-member {
            border: 1px solid #e5e7eb;
            border-radius: 1.25rem;
            padding: 1rem 1.1rem;
            transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
        }

        .family-member:hover {
            border-color: #4169e1;
            box-shadow: 0 10px 24px rgba(65, 105, 225, 0.10);
            transform: translateY(-1px);
        }

        .family-member-label {
            display: flex;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
        }

        .family-member-checkbox {
            width: 20px;
            height: 20px;
            accent-color: #4169e1;
            flex-shrink: 0;
            cursor: pointer;
        }

        .family-member-content {
            flex: 1;
        }

        .family-member-name {
            font-size: 1rem;
            font-weight: 600;
            color: #111827;
            margin-bottom: 0.25rem;
        }

        .family-member-role {
            display: inline-block;
            margin-bottom: 0.45rem;
            padding: 0.35rem 0.75rem;
            border-radius: 9999px;
            background-color: #e0e7ff;
            color: #3558c5;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .family-member-role.child {
            background-color: #dcfce7;
            color: #15803d;
        }

        .family-selection-actions {
            display: flex;
            gap: 0.75rem;
        }

        .family-selection-actions .login-submit-button {
            width: auto;
            flex: 1;
        }

        .family-secondary-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            background-color: #e5e7eb;
            color: #374151;
            padding: 0.75rem 1rem;
            border-radius: 9999px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.15s ease-in-out;
        }

        .family-secondary-button:hover {
            background-color: #d1d5db;
        }

        @media (max-width: 640px) {
            .family-selection-card {
                padding: 1.5rem;
            }

            .family-selection-actions {
                flex-direction: column;
            }
        }
