.register-container {

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.register-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
}

.register-card h1 {
    color: #333;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.register-card .subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.register-form .form-group {
    margin-bottom: 1.25rem;
}

.register-form label {
    display: block;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.register-form input[type="text"]:focus,
.register-form input[type="email"]:focus,
.register-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.register-form input[type="text"]::placeholder,
.register-form input[type="email"]::placeholder,
.register-form input[type="password"]::placeholder {
    color: #adb5bd;
}

.register-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.register-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #667eea;
    cursor: pointer;
}

.register-form .checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    color: #6c757d;
    cursor: pointer;
}

.register-form .checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.register-form .checkbox-group a:hover {
    text-decoration: underline;
}

.register-form .btn-register {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.register-form .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.register-form .btn-register:active {
    transform: translateY(0);
}

.register-card .login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.register-card .login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.register-card .login-link a:hover {
    text-decoration: underline;
}

/* Messages d'erreur */
.register-form .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.register-form input.is-invalid {
    border-color: #dc3545;
}

.register-form input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Flash messages */
.flash-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .register-container {
        padding: 1rem;
    }

    .register-card {
        padding: 1.5rem;
    }

    .register-card h1 {
        font-size: 1.5rem;
    }
}
