body {
    background-color: rgba(163, 177, 211, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.register-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.logo-section {
    margin-bottom: 40px;
}

.main-logo {
    color: #6889DD;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.register-form {
    background: white;
    border: 1px solid #A3B1D3;
    border-radius: 8px;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 24px 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #6889DD;
    box-shadow: 0 0 0 2px rgba(104, 137, 221, 0.1);
    background: white;
}

.form-group input::placeholder {
    color: #6c757d;
    font-size: 14px;
}

.checkbox-group {
    margin: 16px 0 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.custom-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #6889DD;
}

.checkbox-label {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    margin: 0;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    background-color: #6889DD;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #5575C5;
}

.form-links {
    text-align: center;
    margin: 16px 0;
}

.login-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.link-text {
    color: #6889DD;
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
    color: #666;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.btn-google {
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.btn-google:hover {
    background-color: #f5f5f5;
}

.btn-google i {
    color: #4285F4;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Styles pour les messages d'erreur */
.alert {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Styles pour les erreurs de formulaire Symfony */
.form-error {
    color: #991b1b;
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 640px) {
  /* Formulaire inscription plein écran bas */
  .register-container { padding: 16px; }
  .register-form { position: fixed; left: 0; right: 0; bottom: 0; width: 100vw; height: 75dvh; max-height: 75dvh; margin: 0; box-sizing: border-box; overflow-y: auto; z-index: 10; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .form-title { text-align: left; font-size: 22px; margin-bottom: 16px; }
  .form-group input { padding: 14px; font-size: 16px; }
  .btn-primary { height: 48px; font-size: 16px; border-radius: 4px; }
  .btn-google { height: 48px; border-radius: 4px; font-weight: 600; }

  /* Logo au-dessus du formulaire */
  .logo-section { display: block; text-align: center; padding: 16px 16px 8px; position: absolute; top: 13rem; }
  .main-logo { display: inline-block; }
}